I'm using a native query for updating a value of a certain key in a HashMap annotated with @ElementCollection
.
After the query is executed the complete entity that contains the HashMap will be retrivied with EntityManager.find(...)
.
The problem is, the HashMap in the retrieved entity still contains the old value.
How can I get the entity with the updated HashMap? Is it necessary to refresh the cache? I'm using Eclipse Link.