Hi,

while I was writing tests for my code I ran into one "problem". Now,
I'm not sure if it is a bug or a feature. I am using Hibernate 1.2.3
and MySQL 3.x .

Some of properties in my JavaBean are marked as not null. When I test
the code I set that property to null and try to save() it. The exception
is thrown - as expected. But when I try to do the same and update() the
code the exception is NOT thrown. Value of that property (string) is
set to "" instead. When I use saveOrUpdate(), it works - just like with
save().
Is there something I misunderstand with update()?

I have some test that shows this problem, so if this is not expected
behavior I can send it together with the debug info etc.

thanks in advance!

jaro.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Reply via email to