vladmihalcea / hypersistence-optimizer

Hypersistence Optimizer allows you to get the most out of JPA and Hibernate. By scanning your application configuration and mappings, Hypersistence Optimizer can tell you what changes you need to do to speed up your data access layer.
https://vladmihalcea.com/hypersistence-optimizer/
Apache License 2.0
306 stars 43 forks source link

Add support for verifying equals and hashCode entity method implementations when calling merge #155

Closed vladmihalcea closed 2 years ago

vladmihalcea commented 2 years ago

When calling merge, if the entity uses an auto-generated identifier, the entity risks of changing its hashCode, hence it won't be located in a Set collection in which the entity was stored prior to being merged.

vladmihalcea commented 2 years ago

Fixed.