I\'m trying to persist an object to a database. Keep getting \'Column ID cannot accept null value error\'. My object looks like this:
@Entity public cl
In my case it was about bad dialect:
hibernate.dialect=org.hibernate.dialect.H2Dialect
instead of:
hibernate.dialect=org.hibernate.dialect.PostgreSQL9Dialect
when I switched to the production database. Hibernate tried to use strategy prepared for different db engine.