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
318 stars 43 forks source link

Add support for detecting when loading in the Persistence Context multiple entities mapped to the same tables #212

Closed vladmihalcea closed 1 year ago

vladmihalcea commented 1 year ago

Since it's possible to map multiple entities on the same database table, as explained in this article, it's very important to avoid fetching two different entities that reference the same table record in the same Persistence Context.

vladmihalcea commented 1 year ago

Fixed.