Dmitri Colebatch wrote: > I could be way off, but... > > a) > <quote> > <entity> > <ejb-name>MyBean</ejb-name> > <prim-key-class>....MyKey</prim-key-class> > ... > <cmp-field><field-name>key</field-name></cmp-field> > <cmp-field><field-name>year</field-name></cmp-field> > <cmp-field><field-name>month</field-name></cmp-field> > <primkey-field>key</primkey-field> > ... > </entity> > </quote> > > aren't prim-key-class and primkey-field mutually exclusive? Could that > be upsetting something?
If prim-key-class is not a primitive wrapper, you can't have primkey-field. > b) aren't the fields of a pk class suppose to be public? or did that > change in ejb2? Yes you are right, they must be public. I had to look it up myself. I strongly recommend you don't use a compound primary key as it is very hard to code correctly, and even if you get it correct, the person who has to maintain it can easily break the code. -- xxxxxxxxxxxxxxxxxxxxxxxx Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Bringing you mounds of caffeinated joy. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user