Code:
public class Order implements java.io.Serializable {
   @Embedded
   @AttributeOverrides( {
         @AttributeOverride(name = "address", column = @Column(name = "shipaddress")),
         @AttributeOverride(name = "city", column = @Column(name = "shipcity")),
         @AttributeOverride(name = "country", column = @Column(name = "shipcity")),
         @AttributeOverride(name = "phone", column = @Column(name = "shipphone")),
         @AttributeOverride(name = "state", column = @Column(name = "shipstate")),
         @AttributeOverride(name = "zip", column = @Column(name = "shipzip")) })
   private Address shipAddress;
   @Embedded
   @AttributeOverrides( {
         @AttributeOverride(name = "address", column = @Column(name = "billaddress")),
         @AttributeOverride(name = "city", column = @Column(name = "billcity")),
         @AttributeOverride(name = "country", column = @Column(name = "billcity")),
         @AttributeOverride(name = "phone", column = @Column(name = "billphone")),
         @AttributeOverride(name = "state", column = @Column(name = "billstate")),
         @AttributeOverride(name = "zip", column = @Column(name = "billzip")) })
   private Address billAddress;
...
}
And I get the following error:
Quote:
org.hibernate.MappingException: Repeated column in mapping for entity: com.abc.xyz.domain.Order column: address (should be mapped with insert="false" update="false")
...
After some research, but haven't found a solution yet. How to solve this problem?