[jboss-user] [EJB 3.0] - Sequence generators in Embedded PK
krudz
do-not-reply at jboss.com
Wed Sep 12 02:59:56 EDT 2007
Is it possible to use sequence generetors in embedded primary keys?
Example
We want to use:
@Id
@GeneratedValue(strategy=GenerationType.AUTO, generator="NotHeadSeq")
@Column(name = "nhd_id")
in class with @Embeddable annotation.
The class with @Embeddable annotation contains few columns which are supposed to be a composite key.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083297#4083297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083297
More information about the jboss-user
mailing list