hbm2java gegerate get method for property such as "xDirection" getxDirection
-----------------------------------------------------------------------------
Key: HBX-958
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-958
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2beta6
Environment: jdk1.5
Reporter: pa_ss
when define a property in hbm file as xDirection ,char[0] as lower as char[1] is upper,
the hbm2java will generate getxDirection() as getter, instead of getXDirection as define
in JavaBean.
And at the same time , hibernate core will find the getter named getXDirection when build
session factory, thus, error ocuur.
I had read the source code in hibernate tool an hibernate core. The form use the code
below
if(propertyname.length >1 and propertyname.char[1] is uppercase )
{
return propertyname;
}
but hibernate core use
if(propertyname.length >1 and propertyname.char[0] is uppercase and
propertyname.char[1] is uppercase )
{
return propertyname;
}
so......
thanks, best regards
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira