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

Charles Sagayaraj (JIRA) noreply at atlassian.com
Mon Jun 28 07:12:09 EDT 2010


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