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. I am posting this in a Seam forum because Seam uses its own collection of Hibernate versions.
Thanks!