I have a field on a mySQL table of type datetime, not nullable
Scaffold as normal. To test, from the scaffolded edit form open an existing record and hit the “save” button.
Get exception
org.hibernate.PropertyValueException: not-null property references a null or transient value: myField NAME HERE
at org.hibernate.engine.Nullability.checkNullability(Nullability.java:101)
………
the line of code that has triggered the exception is
MyTablenameDAO.flush();
In trying to track down what was going wrong I see myField is being returned from the form as NULL, where as the other fields are being returned with their values from the form.
When, on the Edit form, I change myField then the value returned is not null and the save works as expected.
My environment details include:
– Browser = Chrome and or Firefox (same result in both), latest versions
– MyEcplise for Spring 9.1 with all updates applied
– MySQL database, version as at about a month ago
– Ubuntu. Latest version, 64 bit, all updates applied
– Running Ubuntu under VirtualBox on Windows 7 Ultimate, all updates
Hopefully you have come across this before – it looks like a bug somewhere in the stack?