Hi,
There are some situations that multiple callback annotations are applied to a single method in an entity, in this case the problem is when you want just one of the annotations be considered in case of multiple events.
For example a callback method in entity is annotated with @PostLoad and @PostUpdate and this entity is detached. While detached, the state is updated. Next, when it comes to be managed, the same callback method is called twice.
I want to refuse calling such method for multiple times.
If such mechanism exists, it helps to avoid calling the same method for multiple times when some events are shouted at approximately the same time.
Is there a mechanism to do that or it must be put into consideration in next JPA version?
[Message sent by forum member 'youness_teimoury' (youness126_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=392112