A entity containing a HashMap (annotated with ElementCollection) will be persisted using Eclipse Link / JPA.
By using the following JPQL query the HashMap should be retrivied now:
SELECT t.myMap FROM myEntity t WHERE t.id = :id"
Unfortunately the result is not the Map again, but a list of Strings which are (only) the values of the HashMap.
How can I get the HashMap as a single result?
Any help is appreciated.