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:[email protected]]
> Sent: Dienstag, 4. Juli 2017 12:11
> To: [email protected]
> 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.