[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5344) Hibernate reading propertyName instead of column_name

Gail Badner (JIRA) noreply at atlassian.com
Sun Jul 11 18:08:14 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37704#action_37704 ] 

Gail Badner commented on HHH-5344:
----------------------------------

Please do the following:

    * checkout the trunk version http://anonsvn.jboss.org/repos/hibernate/core/trunk
    * update or add a test in org.hibernate.test.annotations.embedded.EmbeddedTest to reproduce your issue
    * create a patch using "svn diff" and attach to this issue

Thanks,
Gail



> Hibernate reading propertyName instead of column_name
> -----------------------------------------------------
>
>                 Key: HHH-5344
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5344
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.5.2
>         Environment: Hibernate 3.5.2 Final and Oracle 10g
>            Reporter: Charles Sagayaraj
>
> Hi, I have been using the following in Telephone embeddable domain object.
> @Column(name = "telephone_number")
> private String telephoneNumber;
> This was working fine when I used 3.3.2 version. After I have upgraded to 3.5.2 Final the hibernate API was using telephoneNumber to look for the column name in the Oracle table, and it started failing with "DB column doesn't exist" error.
> I had to use @AttributeOverrides along with the @embedded to overcome this issue. Now my modified code looks like 
> @Embedded
> @AttributeOverrides( {
>   @AttributeOverride(name= "telephoneNumber", column= @Column( name = "telephone_number"))
> })
> private Telephone tnInfo;
> I am not sure why suddenly my original code was broken with Hibernate 3.5.2 Final upgrade. I would appreciate if someone can look into this issue and provide the fix in the earliest next hibernate release.
> Thank you
> Charles

-- 
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