[jboss-user] [EJB 3.0] - Re: Problem with composite Primary key which is also a forei

imranpariyani do-not-reply at jboss.com
Mon Apr 23 10:01:48 EDT 2007


Thanks for the fast reply ...

The primary key for my example is ChildPK.class and according to the ejb3 specification i have the annotation @IdClass(ChildPK.class) in my child class 

all the columns in the pk class have to be present in the child class with @Id annotation  so there will be two @Id annotations coz of the composite key..

the one you are talking about is the @Embeddable annotation. I am not using that.

Thanks and Regards

Imran

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039851#4039851

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039851



More information about the jboss-user mailing list