• Post Reply Bookmark Topic Watch Topic
  • New Topic

primary key associated with wrong data

 
Lee Barney
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Setup:
JBoss 3.0
HSQL
Problem:
I call ejbCreate on class EJBX(String aPatID, int aDate, int aTime, String aData, int aSub)
 
Lee Barney
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this again.
Using CMP as well.
Using EJBXPK class as primary key with String ID, int Date, int Time, int Sub as data members.
I veiw the data in the data base using a query tool and the data exists in the rows correctly.
I run the query defined by this below and get a collection of remote refs. The to string shows the correct info in the PK, when the getXXXX() calls are made on the remote ref, all of the data is the same for every key even though the data displayed in the key is correct.
Ideas?
<query>
<query-method>
<method-name>findByID</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
SELECT OBJECT(c) FROM Visit AS c WHERE c.ID = ?1
</ejb-ql>
</query>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!