fyzhou / beanio

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

Binding a record to an inline map with 'key' and 'target' attributes is not working #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Given the following mapping file:

  <stream name="stream" format="csv">
    <group name="group" class="map">
      <record name="record" collection="map" key="name" target="value">
        <field name="name" />
        <field name="value" />
      </record>
    </group>
  </stream>

I would expect a map where:

"record" -> { "name1" -> "value1", "name2" -> "value2" }

Original issue reported on code.google.com by kevin.s...@gmail.com on 16 Feb 2013 at 4:55

GoogleCodeExporter commented 9 years ago
Reviewing the code indicates this was intentionally not supported for now.  
Changing to enhancement.

Original comment by kevin.s...@gmail.com on 16 Feb 2013 at 5:27

GoogleCodeExporter commented 9 years ago
Note the expected input for the example above is:

name1,value1
name2,value2

Original comment by kevin.s...@gmail.com on 16 Feb 2013 at 9:15

GoogleCodeExporter commented 9 years ago
Fixed for 2.0.4.  Snapshot JAR attached.

Original comment by kevin.s...@gmail.com on 16 Feb 2013 at 9:22

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by kevin.s...@gmail.com on 6 Mar 2013 at 3:14