db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Wiesner <step...@stephan-wiesner.de>
Subject Enforcing 'Not Null' Columns
Date Sat, 29 Mar 2003 19:30:43 GMT
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?


View raw message