tommysiu / beanio

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

Header column names to object fields mapping #124

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?  If applicable, please provide a
mapping configuration and sample record input to recreate the problem.
1. Found no way to define content structure from header.
2. The configuration is too complex for that or missing from guide

What is the expected output? What do you see instead?
I have a delimeted file. I have header with column names on the first line, but 
I do not know the order of columns. F.e. Today we have Header and columns 
ordered "A" "B" "C" and tomorrow "B" "A" "C". Is there any way to map file 
content fields to file header values, if column order changes we will still 
have the same mapping for our class.

What version of BeanIO are you using? What JDK version?
BeanIO 2.1.0, JDK 1.7

Original issue reported on code.google.com by DmitryKa...@gmail.com on 23 Oct 2014 at 1:47

GoogleCodeExporter commented 8 years ago
That's correct, there is currently no easy way to accomplish that.

Original comment by kevin.s...@gmail.com on 5 Nov 2014 at 2:11