[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5344?page=c...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira