0 Replies Latest reply on Jun 1, 2008 7:51 AM by Martin S

    AttributeOverride ignored (Seam 2.0.2GA)

    Martin S Newbie

      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!