Closed GoogleCodeExporter closed 8 years ago
The 'at' property will not be changed. Current behavior cannot be broken and
was designed that way to allow for skipping fields that can be ignored.
I will investigate adding a new property that controls annotated field sort
order, so that if you do declare all fields, BeanIO can determine field
positioning. In the meantime, you can still achieve the behavior you want
using a mapping file instead of annotations.
Thanks,
Kevin
Original comment by kevin.s...@gmail.com
on 14 Dec 2013 at 7:45
OK. Thanks for the feedback. Your idea would work for our use case as well.
We look forward to being able to achieve this functionality with annotations.
Thanks
Original comment by jbu...@ersinc.com
on 16 Dec 2013 at 6:23
Try the attached snapshot JAR. I've added an 'ordinal' property on @Field and
@Segment that I think will accomplish what you are looking for. A few caveats:
you should define every field in a record and you won't be able to use 'until'
logic (although it won't stop you from trying).
Thanks,
Kevin
Original comment by kevin.s...@gmail.com
on 17 Dec 2013 at 4:25
Attachments:
Kevin,
Thanks! This does work as intended.
Original comment by jbu...@ersinc.com
on 18 Dec 2013 at 9:34
Original comment by kevin.s...@gmail.com
on 17 Jan 2014 at 3:12
Original comment by kevin.s...@gmail.com
on 7 Sep 2014 at 2:16
Original issue reported on code.google.com by
jbu...@ersinc.com
on 13 Dec 2013 at 3:52