Although this is not a Spring related question, I hope some bright minds can point me a right direction. I read somewhere online that I should be able to do the followings:
andCode:@Embeddable public class A implements Serializable { //... private String something; }
But, I get the following errors:Code:@Entity public class B implements Serializable { //... @Embedded private A a; @Embedded @AttributeOverrides( { @AttributeOverride(name = "something", column = @Column(name = "b_something")), // ... }) private A a1; //...
How to solve this problem?org.hibernate.MappingException: Repeated column in mapping for entity: com.abc.xyz.sample.domain.B column: something (should be mapped with insert="false" update="false")
Thanks very much in advance.


Reply With Quote