Hi, I have a problem with named query and hashMap and I couldn't find info in doc. I'm interested in create named query with "custom" select and map it to hashmap in my entityClass. For example, query like this: select one as key_one, two as key_two.....
and entity: class MyEntity{ HashMap map; ... }
and I want create resultSet which will "fill" the map with values from select. After query I want have something like this: entity.map.key_one => value one entity.map.key_two => two
it is clear for Me how to map values from select to property of entity but I can't find a way to map it as key/value pair in mentioned hashMap
|