*
The moose likes Object Relational Mapping and the fly likes org.hibernate.exception.GenericJDBCException: Field 'id' doesn't have a default value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.exception.GenericJDBCException: Field Watch "org.hibernate.exception.GenericJDBCException: Field New topic
Author

org.hibernate.exception.GenericJDBCException: Field 'id' doesn't have a default value

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
Hi,

I am getting the following error org.hibernate.exception.GenericJDBCException: Field 'id' doesn't have a default value

I am using a MySQL database, and using org.springframework.data.jpa.domain.AbstractPersistable


AbstractPersistable


creates the Id value.
 
Consider Paul's rocket mass heater.
 
subject: org.hibernate.exception.GenericJDBCException: Field 'id' doesn't have a default value
 
Similar Threads
Problem using Hibernate Native Statement
Hibernate 3.0 : Where am I going wrong?
Problem in <many-to-one> relationship
Problem in <one-to-one> relation mapping
hibernate to JPA: generator class=increment