The primary key is missing in the insert statement.
Thanks a lot for your quick reply schmidts.
I work with JBUilder X, so everything happens automatically. I created an entity bean, and I added 2 fields, 1 String : levelName wich I indicated as my primary key. And 1 self made class Ground:ground wich contains my int. Both of the parameters are in ejbCreate. And when I try to create the new record, both of them are filled in.
I think (ground) in the error message
"Try to insert null into a non-nullable column in statement [INSERT INTO PLAYFIELD (ground) VALUES ..."
means it has troubles while inserting into column 'ground',so the primary key is in another column ('levelName') no ?
I've got the solution.
Apperantly, I set the entity command for hypersonic in the root level of my ejb-module,
because I needed an autoincrementing key in one bean. But not in this one. The solution was to set the entity command on bean level,so only set it for the bean that needed autoincrementing key. Not for the other.
Can you post the name of the file and the XML you used to solve it. This problem is killing me.