I'm not sure if you're experiencing the problem that I faced in that (rather old and embarassing) post as it's hard to tell from your description.
Are you adding your new entity to the collection? Alternately, if you are using a @Factory and Session/Conversation scoped Bean, then you may need to force the Bean to reload (eg. calling your Bean method that does the search).
Is the list a DataModel generated from the DataModel annotation?
@Damian : Yes I am experiencing the same problem as you mentioned . I am adding a new element to the Collection and I am seeing it added in the database .
@Keith : This is using a @DataModel and @Factory method . I have annotated the method that calls the search using the @Observer . I have a printf in the code that shows that this method is indeed being called
I'm facing exactly the same problem.
Consecutive calls of EntityManager.createQuery(...) do not reflect changes in the data model that have been created with EntityManager.persist(...). When I check the database I can see the new values.
Is there a solution available for this problem?
Many Thanks, MrBiggles