[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2328) Java Bean error
Henri Yandell (JIRA)
noreply at atlassian.com
Thu Dec 28 11:48:44 EST 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2328?page=comments#action_25733 ]
Henri Yandell commented on HHH-2328:
------------------------------------
I don't think a property name of 'pD' is legal in the bean spec. It would have a get method of getPD and when that's translated back to a property name it's a property name of 'PD' and not 'pD'.
Have you tried <property name="PD" column="ID_PD"/> ?
> Java Bean error
> ---------------
>
> Key: HHH-2328
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2328
> Project: Hibernate3
> Type: Bug
> Versions: 3.0.5
> Environment: Oracle 10g
> Reporter: Parag Lohiya
>
>
> The problem has come up 3 days back.
> i declared a variable
> String vD = null;
> // getter and setter
> and mapped the vD with table column in hbm.xml
> <property name="vD" column="ID_VD"/>
> after running the application i got hibernate exception saying
> no getter method found for the field vD.
> Than we tried the same by using another variable making other field also follow the above format.
> String pD = null;
> // getter and setter
> and placed the mapping above vD mapping in hbm file
> <property name="pD" column="ID_PD"/>
> <property name="vD" column="ID_VD"/>
> Than i got the exception no getter found for pD field
> after that i tried for field
> String vd = null;
> and did all the mapping and the code worked fine
> i also tried for different variable names toVD, vdMinus, valueDate all worked.
> The problem is if we use variable with 2 character as capital than it gives an exception.
> Please see for the above problem.
--
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
More information about the hibernate-issues
mailing list