I don't know what it could be then :(. As far as i understand, general idea of pk generation is to tell EJB engine what type (class) of pk it will be, and tell details to jboss personally.
Something about integer type should be mentioned in ejb-jar.xml and particular instructions in jbosscmp-jdbc.xml How your ejbCreate and ejbPostCreate looks like? It should not contain pk field in signature and no calls to pk inside i mean nothing of getId() (could be not assigned yet) and setId(id) will override autoincremented value. That is just my current understanding, it works for me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948702#3948702 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948702 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user