Open GoogleCodeExporter opened 8 years ago
Confirmed the behavior is the same in 2.0.
Original comment by HiJo...@gmail.com
on 7 Jun 2012 at 5:19
I agree there is definitely some room for improvement here, and will think
about a better long term solution.
For now, if you have any duplicate field names, you can change them to
something unique, and then use getter and setter attributes. For example:
<record name="bigBean" class="example.BigBean">
<bean name="myBean" class="example.MyBean">
<field name="num" type="integer" />
</bean>
<bean name="yourBean" class="example.MyBean">
<field name="num2" getter="getNum" setter="setNum" type="integer" />
</bean>
</record>
Hope that helps.
Thanks,
Kevin
Original comment by kevin.s...@gmail.com
on 7 Jun 2012 at 7:33
We're doing something similar to that for now, but unfortunately you can't use
templates with this approach so our BeanIO mappings have a lot more duplication
now.
Original comment by HiJo...@gmail.com
on 7 Jun 2012 at 7:59
Good point. I'm working on a couple other things right now, but will make
improved error reporting my next priority for a 2.x release. Sorry this won't
help you in the near term.
Original comment by kevin.s...@gmail.com
on 8 Jun 2012 at 1:57
Original issue reported on code.google.com by
HiJo...@gmail.com
on 7 Jun 2012 at 4:30