- Entity mapping: A manytomany B
- Hooks: a @PostLoad hook on B
- Persisted entities: two instances of A related to the same instance of B
When I load both A's using the EntityManager, and access the instance of B (internally from each A), the @PostLoad hook is being triggered twice instead of once (as there is only one instance of A).
I left an attachment with the code ready to run (please read the README.md to setup the environment).
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||2.2.1 [ 10194 ]|
|Resolution||Fixed [ 1 ]|
|Workflow||jira [ 13294 ]||jira-feedback [ 15160 ]|
|Workflow||jira-feedback [ 15160 ]||jira-feedback2 [ 17024 ]|
|Workflow||jira-feedback2 [ 17024 ]||jira-feedback3 [ 19277 ]|