I could provide you with part 1 of the solution. Your table seems to have a composite primary key comprising of the two foreign keys form countries and languages tables. If this is so, you may need to create a primary key class. Which is basically a java bean containing the two fields (country and language in your case) having public access specifiers in addition your java bean need to implement the Comparable and java.util.Comparator interfaces and also the Serializable interface which doesn't have methods. After this you need to specify this bean class as your primary key class in your ejb-jar.xml deployment descriptor in the region you specify the CMP fields for your EJBs in this case the countrylanguages EJB.
Allan. --- grafl <[EMAIL PROTECTED]> wrote: > Hi > I have the following tables: > > -- countries -- > int id (pk) > string name > string shortname > > -- languages -- > int id (pk) > string language > > -- countrylanguages -- > int country (pk) <fk countries:id> > int language (pk) <fk languages:id> > > Can somebody give me a CMP entity bean example and > the related xml files for the last table? > > Thank you > > Laszlo > > View the original post : > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884499#3884499 > > Reply to the post : > http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884499 > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With > Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to > explore the latest in dual > core and dual graphics technology at this free one > hour event hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > JBoss-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jboss-user > __________________________________ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
