Date createddate = new Date();
project.setCreateddate(createddate);
projectservice.savaorupdate(project);
In the above code ‘createddate’ column is saved …
When I edit the bean and then it comes to a different controller I enter the modified date
Date modifydate= new Date();
project.setModifieddate(modifydate);
projectservice.savaorupdate(project);
In this process the createddate column ll not get the value and its nullified.
Please give any solution to this situation.
I think the hibernate Query is firing an update on unmodified columns also . Set the show-sql=true to find this .
You may set dynamic-update=true at the tag level to sort it out . Check the link here .