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 entityName to EntityMappingEvent #174

Closed vladmihalcea closed 2 years ago

vladmihalcea commented 2 years ago

Wen the EntityMode is POJO, the entityClass is sufficient when triggering an EntityMappingEvent.

However, if the EntityMode is MAP, then the entityClass is going to be a Map, and that doesn't say anything about the entity class, in which case, we'd need to use the entityName.

vladmihalcea commented 2 years ago

Fixed.