users@glassfish.java.net

Re: 2 Embedded of same class in one entity?

From: <glassfish_at_javadesktop.org>
Date: Thu, 07 Aug 2008 09:42:22 PDT

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