Hi.
I use not-null="true" for my POJO properties in *.hbm.xml files.
Also, I have a web form which is supposed to collect data from the user (you know the story, this form will be posted to
Struts action which it is in turn create the POJO and pass it to Hibernate persistence manager).
Well, I supplied no data in the form and pressed Submit, the result ??
I was totally shocked because a new blank row created in the database (in spite of not-null constraint).
By the way, I created my database schema using Hibernate generated schema (DDL file) and the not-null is included in the SQL script.
So ??