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 just wanted to know if someone else has encountered similar issue, so that I will get convinced that Hibernate 3.5.2 has an issue.
I have also raised Hibernate Jira ticket HHH-5344 requesting a fix from Hibernate.
Appreciate your response on this.
Thank you.
|