Notice that ID has changed, it means that hibernate properly assigned auto increment value from db, however created properties which is current timestamp is null
and I have no new row in the db.
It's strange but if I do the same insert operation in a simply class without getting customer from view it works, just put customer object creation to main() method everything works fine.
Could anybody give me any advice, please?
posted 6 years ago
it would be useful if you'd provide some mapping info on your involved entities, probably mapping files. Just posting the code of the session actions says closely to nothing.
I am also not really sure if I really got your problem. Your info is quite confusing and probably incomplete.