Thanks Roger, I agree with you. The auto generated primary key issue is solved by:
1) the @jboss.persistence auto-increment = "true" tag for the primary key cmp field. 2) the @jboss.entity-command name = "(Database specific)" in the bean definition. But it works also with: 1) @jboss.unknown-pk ... auto-increment="true" in the bean definition 2) @ejb.pk class = "java.lang.Object" in the bean definition 3) the @jboss.entity-command name = "(Database specific)" in the bean definition. 4) Not defining a cmp-field for the primary key. BTW, JBoss don't care about the ejbCreate return type. In both cases, I return a java.lang.Object and it works fine. So the question is what's the difference, and what is the uses cases for each method ? I think that only a JBoss guy can respond ;-) Pascal View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833765#3833765 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833765 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
