[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2328) Java Bean error

Parag Lohiya (JIRA) noreply at atlassian.com
Wed Dec 27 15:59:44 EST 2006


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