| Author |
jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'balance' cannot be null
|
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
Hi,
I am trying to persist an entity to a databse
in my database balance can not be null
in my code i have the following
In my testEntity i am setting balance, but I have the feeling its flling over before it runs the test. That i need to add something in the Column
Annotation
|
 |
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
|
Thanks for any help
|
 |
James Sutherland
Ranch Hand
Joined: Oct 01, 2007
Posts: 553
|
|
Are you sure you are setting the balance? Include your code and the log on finest.
|
TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
|
 |
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
|
Hi James thanks for replying in fact it was a deeper issue which I am now trying to fix.
|
 |
 |
|
|
subject: jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'balance' cannot be null
|
|
|