View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821593#3821593
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821593 Thanks, CMR to a bean with a primitive PK can be CMP too, but consider the following scenario: BeanA has a String PK. BeanB has a FK to BeanA and a String ID, both of them are PK. BeanC has a FK to BeanB and a String ID, both of them are PK. As you know, the type of Bean implementation and PK should be the same for CMP. In BeanB you will have public abstract BeanALocal getBeanA(); and in BeanB_PK class: public BeanALocal beanA; public String beanB_ID; In BeanC you will have public abstract BeanBLocal getBeanB(); and in BeanC_PK class: public BeanBLocal beanB; public String beanC_ID; Now, how to map BeanC.beanB field in the database. And the PK class can be used by remote clients which should not see the Local interfaces at all!!!! Really, I guess this is a major design issue of EJB, which prevents us to use it on legacy applications. Thank you so much, Yours, Ahmed Ashour ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user