This content has been marked as final. Show 2 replies
I created the table myself (a quick hack, I need jboss to do it) with
CREATE TABLE STUDENTGROUP ( id INTEGER NOT NULL IDENTITY, password VARCHAR(256), article VARCHAR(256) )
now, during the creation of a new StudentGroup, JBoss complains with
javax.ejb.CreateException: Primary key for created instance is null.
any suggested solution?
How can I make JBoss create the table in a correct way (with IDENTITY)?
The problem was that jbosscmp-jdbc.xml was not included in the correct jar file. Now the problem seems solved.