When I tried using auto-generate to generate my IDs with CMP beans, I got an exception and so I looked for alternatives. I came across this:
In the deployment descriptor, the primary key class must be defined as a java.lang.Object. The primary key field is not specified. In the home interface, the argument of the findByPrimaryKey method must be a java.lang.Object. In the entity bean class, the return type of the ejbCreate method must be a java.lang.Object. In these entity beans, the primary key values are in an internal field that only the EJB container can access. You cannot associate the primary key with a persistent field or any other instance variable. However, you can fetch the bean's primary key by invoking the getPrimaryKey method on the bean reference, and you can locate the bean by invoking its findByPrimaryKey method.
when I try to do that throught the WSAD for DB2, I get a problem which stops the generation of the deployment code..most probably bec. the table id is not mapped to a field in the bean. How can I bypass this problem?
On my planet I'm considered quite beautiful. Thanks to the poetry in this tiny ad:
a bit of art, as a gift, the permaculture playing cards