-
1. Re: Try to insert null into a non-nullable column...
schmidts Feb 8, 2004 8:12 AM (in response to themuppeteer)The primary key is missing in the insert statement.
-
2. Re: Try to insert null into a non-nullable column...
themuppeteer Feb 8, 2004 11:27 AM (in response to themuppeteer)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 ? -
3. Re: Try to insert null into a non-nullable column...
themuppeteer Feb 9, 2004 1:04 PM (in response to themuppeteer)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. -
4. Re: Try to insert null into a non-nullable column...
tiredofworkingfortheman Jul 26, 2004 11:03 AM (in response to themuppeteer)Can you post the name of the file and the XML you used to solve it. This problem is killing me.