You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Stephan Wiesner <st...@stephan-wiesner.de> on 2003/03/29 20:30:43 UTC

Enforcing 'Not Null' Columns

Hi list,
when I create a table with columns set to 'Not Null' the generated Java 
code does not enforce this in any way. When I initialize an object 
without setting all required attributes and then try to store it, I get 
an SQL exception. Wouldn't it be more efficient to test this in the Java 
class, instead of relying on the database?


Stephan