A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Engineering
»
XML and Related Technologies
Author
jaxb hashmap?
nimo frey
Ranch Hand
Joined: Jun 28, 2008
Posts: 580
posted
Mar 06, 2009 00:52:06
0
How can I map a Java-Map in JAXB using Annotations?
I would like to have this:
private Map<String, List<Object>> myMap = new HashMap<String, List><Object>>(); //getter/setter
the xml should be something like:
<myMap = "key"> <objectProperty1>...</objectProperty1> <objectProperty2>...</objectProperty2> <objectProperty2>...</objectProperty2> .. </myMap>
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: jaxb hashmap?
Similar Threads
Populating HashMaps of HashMap of Objects
IllegalArgumentException: more than 10 parameters
Hashmap and Generics
Map instantiate with key-value
HashMap Construction with initial values
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter