Hibernate version:3.2.4.sp1 as well as 3.2.6GA
Name and version of the database you are using:PostgreSQL 8.3
Hi, I have a very simple @Embeddable class called Email with one persistent attribute:
...
@Column(name = "email_address")
public String getEmailaddress() { return this.emailAddress; }
...
I want to override the column mapping in my "User" class:
...
@Embedded
@AttributeOverrides( { @AttributeOverride(name = "emailAddress", column = @Column(name = "email_primary"))} )
public Email getEmailPrimary() { return this.emailPrimary; }
...
However, Hibernate still tries to map emailPrimary to email_address.
|