Friday, 4 November 2016

Hibernate4 : What is cause of error - Hibernate: “Field 'id' doesn't have a default value” ?


Error : Hibernate: “Field 'id' doesn't have a default value”

Cause : Sometimes changes made to the model or to the ORM may not reflect accurately on the database

(Changes made in model after database created)

Solution : Drop and Re-create the table / database

No comments:

Post a Comment

Note: only a member of this blog may post a comment.