From: Luis P. (JIRA) <no...@at...> - 2006-07-03 17:14:59
|
Problem mapping properties names which consists of several words ---------------------------------------------------------------- Key: HHH-1874 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1874 Project: Hibernate3 Type: Bug Versions: 3.0.5 Environment: Hibernate 3.0.5 hsqldb 1.8 Reporter: Luis Parravicini I'm having problems trying to map certain properties. Having a class with a property named nChilds and public getter/setter: public class Test { private int nChilds; .... public int getNChilds() { return nChilds; } public void setNChilds(int nChilds) { this.nChilds = nChilds; } .... } The property is mapped as: <property name="nChilds" not-null="true"/> And I get the exception: org.hibernate.PropertyNotFoundException: Could not find a getter for nChilds in class ar.com.itboss.Test When I replace all occurrences of nChilds to other name, like numberChilds it works. It seems the problem is when the property name is composed of several words and the first one is only a letter long. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |