In that case, why not just implement notification in the setter for the 
attribute?

public void setSomeAttribute(Object someNewValue) {
        Object oldValue = attributeValue;
        attibuteValue = someNewValue;
        System.out.println("changed: " + oldValue + " -> " attributeValue);
}

John


> -----Original Message-----
> From: Klesk [mailto:c...@hotmail.com]
> Sent: Dienstag, 4. Juli 2017 12:11
> To: users@openjpa.apache.org
> Subject: RE: Attribut change listener
> 
> Hello,
> 
> In fact, I need to be notified when an attribute content change ASAP.
> Methods with an event annotation are called when the EntityManager is
> called. That's mhy I don't use annotations ;)
> 
> Regards,
> 
> 
> 
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Attribut-change-listener-
> tp7590226p7590229.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to