[JBoss-user] [Persistence CMP/JBoss] - Re: Composite key -CMP Bean
In composite key class one must have exactly the same names of getters/setters as defined in EJB using this composite PK class. So if your SomeEJB has getId1 and getId2 methods which are mapped on PK fields, then your SomePK must have exactly the same getId1 and getId2 methods! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3845508#3845508 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3845508 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Composite key -CMP Bean
Make sure you have a proper implement for hashCode and equals? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844911#3844911 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844911 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: Composite key -CMP Bean
Hi anil, Did you find the solution to your composite key problem. I am also having the same problem. I however can write records to table, but it crashes on me whenever I try to read the record. I struggled with it for a while before I realized it's the composite key problem. I was for a long time looking for datetime part of my composite key. I have the Composite Key class defined (it also implements Serializable interface) and overwrites hashCode and equals methods. regards vss View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844733#3844733 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844733 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user