[JBoss-user] [Persistence CMP/JBoss] - Re: Composite key -CMP Bean

2004-08-18 Thread sbrbot
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

[JBoss-user] [Persistence CMP/JBoss] - Re: Composite key -CMP Bean

2004-08-12 Thread loubyansky
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

[JBoss-user] [Persistence CMP/JBoss] - Re: Composite key -CMP Bean

2004-08-10 Thread yantriki
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