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.
Cause | Exception | Exception message |
---|---|---|
Property getter or setter is missing or not written properly | org.hibernate.PropertyNotFoundException / org.hibernate.MappingException | Could not locate setter/getter method for property ….. |
Mixing property and field annotations | org.hibernate.MappingException | Could 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 maintained | oorg.hibernate.exception.ConstraintViolationException / org.springframework.dao.DataIntegrityViolationException | not-null property references a null or transient value |