Title: Primarkey is 0

I have a CMP entitybean named Category. It has a name and an id CMP field. I have added a finder method called findAll(),which orion very nicely added a <finder-method> tag in orion-ejb-jar.xml for me, that returns a java.util.Collection object. When I iterate that collection I get the name property from each Category object correctly read, but the id property is always 0. The SQL type in the database is INT with size 4. The return type of the ejbCreate method is long. The id is <primkey-field> and <cmp-field>. <primkey-class> is java.lang.Long. What am I missing?

regards,
Patrik Andersson

Reply via email to