Hello,
Have you looked into @AttributeOverride?
@Entity
MyObject {
@Embedded
@AttributeOverride(name="vname", column=_at_Column(name="MAJOR_VNAME"))
Version majorVersion;
@Embedded
@AttributeOverride(name="vname", column=_at_Column(name="MINOR_VNAME"))
Version minorVersion;
}
Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]
http://forums.java.net/jive/thread.jspa?messageID=292167