tommysiu / beanio

Automatically exported from code.google.com/p/beanio
Apache License 2.0
0 stars 0 forks source link

java.util.Map keys as fixed <property> and values to be taken from input csv (wish list) #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using BeanIO version 2.0. JDK used is 1.6

Can it be possible to have java.util.Map with fixed keys defined in Mapping 
file and values taken from the input csv depending on the position of the field.
This way Map will have fixed keys and the values can be taken as input.

Original issue reported on code.google.com by pratham....@gmail.com on 18 Jan 2013 at 3:50

GoogleCodeExporter commented 8 years ago
Unless I'm misunderstanding, this is already supported: simply set class="map" 
on records you want bound to a Map and field names are used for Map keys.

Original comment by kevin.s...@gmail.com on 18 Jan 2013 at 6:16

GoogleCodeExporter commented 8 years ago
Thanks Kevin. It worked.

Original comment by pratham....@gmail.com on 21 Jan 2013 at 5:57

GoogleCodeExporter commented 8 years ago
Not an issue- closing.

Original comment by kevin.s...@gmail.com on 22 Jan 2013 at 11:25