Hi!
Vincent Harcq wrote:
> I have one CMP that use a String as PK.
> I create a findBPK method, test it.
> No problems.
>
> Then I change my PK to a GeneralPK class, change my ejb-jar.xml files,
> chnage create,ejbcreate,fBPK and ejbFBPK methods, add a jaws.xml file.
> Then my fBPK method returns no more data.
> I have set my JDBCCommand.java to debug
>
> The "select count" statement is correct but with JAVA_OBJECT instead of
> String and it seems to return 0 instead of 1.
Well, if all you did was change the String to GeneralPK that sounds
perfectly normal.
I am assuming now that your GeneralPK class has a String field, and it's
really *that* field you want to use as pk, right? And your bean has a
CMP field with the same name, correct?
If so you need to remove the "primkey-field" from your ejb-jar.xml file,
becuase it is not used for complex keys.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]