JPA / Hibernate troubleshooting

Troubleshooting:

We are currently building a repository of Hibernate / JPA errors and their possible cause in order to facilitate our users to troubleshoot their issues. Please feel free to explore the following guides if you experience one of the following errors.

 

CauseExceptionException message
Property getter or setter is missing or not written properlyorg.hibernate.PropertyNotFoundException / org.hibernate.MappingExceptionCould not locate setter/getter method for property …..
Mixing property and field annotationsorg.hibernate.MappingExceptionCould not determine type for: xxxxx, at table: xxxxxxx, for columns: [org.hibernate.mapping.Column(xxxxxxx)]
Data consistency on both sides of a bidirectional relationship not maintainedoorg.hibernate.exception.ConstraintViolationException / org.springframework.dao.DataIntegrityViolationExceptionnot-null property references a null or transient value