How do I map a java Map including another Map, as element, into hibernate *.hbm.xml

Posted by Václav on Stack Overflow See other posts from Stack Overflow or by Václav
Published on 2012-10-31T22:39:21Z Indexed on 2012/10/31 23:00 UTC
Read the original article Hit count: 386

Filed under:
|

is there possibility to map something like:

private Map<Website, Map<String, String>> parameterMaps =
  new HashMap<Website, Map<String, String>>();

Where 'Website' is my class having some strings attributes, and inner map should be some website specific url parts. I'd like to map it into *.hbm.xml rather than using annotations, because its habit in my project. I appreciate any useful reference to any manual too. Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate