But it has not generated any reference to the findByPrimaryKey method in the deployment descriptors.
What I need to know is how to set the findByPrimaryKey method within the deployment descriptors. Or how to set it up with xdoclet.
Thanks for any help.
Joined: Jun 22, 2001
Yup ! I have the same problem. I the same code deployed on WebLogic 7.1 and when I print ctx.getPrimaryKey() in ejbPostCreate method, I could get the Primary Key value. However, JBoss is not setting the context properly. However, the row is getting inserted in database with correct sequence value.
BTW, I am using JBoss 4.0 with MySql 5.0. My table has primary key defined as AUTO_INCREMENT column. In my code, I am establishing a CMR relation with another entity bean and JBoss is creating a new Bean of current type (I am guessing it because I could see setEntityContext invoked again) before establishing the relation. I am [ September 17, 2004: Message edited by: varanasir ]