I use the Hibernate EntityManager (+ Hibernate Annotations).
I have registered an EntityListener for my data model. If i change simple attributes from an entity, the EntityListener woks fine and "alert". But if there are changes in an association, nothing happens.
For example:
Entity [i]A[/i] has an [i]@ManyToMany[/i] association to Entity [i]B[/i] and i add an object to the collection und make this persistent, the changes are made in the db (new entry in the association table and new entry in table for [i]b[/i]). But: the EntityListener doessn't "alert". Why is this? Is this the right behavior? Are there other possibilities for notifying a listener?
|