Hi,
somehow I don't get this error. My POJO seems to be alright.
The class:
Code:
package de.fhkempten.webedi.cocoon.portal.model.sap;
/**
* Sairport generated by hbm2java
*/
public class Sairport implements java.io.Serializable {
// Fields
private java.lang.String Id;
private java.lang.String Name;
private java.lang.String City;
private java.lang.String Country;
private java.lang.String Utc;
// Constructors
/** default constructor */
public Sairport() {
}
/** constructor with id */
public Sairport(java.lang.String Id) {
this.Id = Id;
}
// Property accessors
/**
*/
public java.lang.String getId () {
return this.Id;
}
public void setId (java.lang.String Id) {
this.Id = Id;
}
/**
*/
public java.lang.String getName () {
return this.Name;
}
public void setName (java.lang.String Name) {
this.Name = Name;
}
/**
*/
public java.lang.String getCity () {
return this.City;
}
public void setCity (java.lang.String City) {
this.City = City;
}
/**
*/
public java.lang.String getCountry () {
return this.Country;
}
public void setCountry (java.lang.String Country) {
this.Country = Country;
}
/**
*/
public java.lang.String getUtc () {
return this.Utc;
}
public void setUtc (java.lang.String Utc) {
this.Utc = Utc;
}
}
The error:
Code:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'petStoreServiceTarget' defined in class path resource [de/fhkempten/webedi/cocoon/portal/spring/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sairportDAO' of bean class [de.fhkempten.webedi.cocoon.portal.spring.service.PetStoreServiceImpl]: Bean property 'sairportDAO' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'sairportDAO' of bean class [de.fhkempten.webedi.cocoon.portal.spring.service.PetStoreServiceImpl]: Bean property 'sairportDAO' is not writable or has an invalid setter method: Does the parameter type of the setter match the re
Or did I understand you guys wrong, that the error was probably in the POJO?
Thanks
Jonny