posted 12 years ago
Hi, Everyone,
I have two entity classes: Centre and User. (One Centre has many Users).
Once I add a new User into the user list of a Centre, it is not in the list retrieved by 'centre.getUserCollection()'.
I guess the object 'centre' is not properly refreshed/updated after the new user has been inserted.
If I use the EntityManager to refresh the centre, the newly added user appears in the list.
Is this the normal way to keep the centre object fresh?