martin.gercsak
Oct 26th, 2009, 12:57 AM
I have the java 1.5 (jrockit) and created a very simple class:
@Entity
@RooJavaBean
@RooToString
@RooEntity(finders = { "findSingleNamesByRefEntIDEquals" })
public class SingleName {
private Integer RefEntID;
private String RefEntName;
}
All the Roo tests pass but when I'm trying to access http://localhost:8080/dtcc/singlename/form to create a new entry I get the following error;
Added model object 'singlename' of type [au.gov.rba.dtcc.domain.SingleName] to request in view with name 'singlename/create'
Added model object 'org.springframework.validation.BindingResult.sing lename' of type [org.springframework.validation.BeanPropertyBinding Result] to request in view with name 'singlename/create'
Invalid property 'RefEntID' of bean class [au.gov.rba.dtcc.domain.SingleName]: Bean property 'RefEntID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
org.springframework.beans.NotReadablePropertyExcep tion: Invalid property 'RefEntID' of bean class [au.gov.rba.dtcc.domain.SingleName]: Bean property 'RefEntID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
It's a bit strange to me that all the Roo generated test (9) pass but you can still get such an elementary error in the webapp.
Any suggestions would be appreciated. Thanks.
This is the SingleName.aj:
privileged aspect SingleName_Roo_JavaBean {
public Integer SingleName.getRefEntID() {
return this.RefEntID;
}
public void SingleName.setRefEntID(Integer RefEntID) {
this.RefEntID = RefEntID;
}
public String SingleName.getRefEntName() {
return this.RefEntName;
}
public void SingleName.setRefEntName(String RefEntName) {
this.RefEntName = RefEntName;
}
}
@Entity
@RooJavaBean
@RooToString
@RooEntity(finders = { "findSingleNamesByRefEntIDEquals" })
public class SingleName {
private Integer RefEntID;
private String RefEntName;
}
All the Roo tests pass but when I'm trying to access http://localhost:8080/dtcc/singlename/form to create a new entry I get the following error;
Added model object 'singlename' of type [au.gov.rba.dtcc.domain.SingleName] to request in view with name 'singlename/create'
Added model object 'org.springframework.validation.BindingResult.sing lename' of type [org.springframework.validation.BeanPropertyBinding Result] to request in view with name 'singlename/create'
Invalid property 'RefEntID' of bean class [au.gov.rba.dtcc.domain.SingleName]: Bean property 'RefEntID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
org.springframework.beans.NotReadablePropertyExcep tion: Invalid property 'RefEntID' of bean class [au.gov.rba.dtcc.domain.SingleName]: Bean property 'RefEntID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
It's a bit strange to me that all the Roo generated test (9) pass but you can still get such an elementary error in the webapp.
Any suggestions would be appreciated. Thanks.
This is the SingleName.aj:
privileged aspect SingleName_Roo_JavaBean {
public Integer SingleName.getRefEntID() {
return this.RefEntID;
}
public void SingleName.setRefEntID(Integer RefEntID) {
this.RefEntID = RefEntID;
}
public String SingleName.getRefEntName() {
return this.RefEntName;
}
public void SingleName.setRefEntName(String RefEntName) {
this.RefEntName = RefEntName;
}
}