tommysiu / beanio

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

Can we have type mapping better Calendar and xsd:date/xsd:datetime/xsd:time #70

Closed GoogleCodeExporter closed 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.
2.
3.

What is the expected output? What do you see instead?
It will be great if beanio can do mapping between Calendar and xsd:date type. 
We have our Java POJO built from JAXB, and all the date types are translated to 
Calendar.

What version of BeanIO are you using? What JDK version?
2.0.5. JDK 1.6

Please provide any additional information below.

Original issue reported on code.google.com by dav...@gmail.com on 8 Apr 2013 at 11:49

GoogleCodeExporter commented 8 years ago
sorry Kevin, I raised it as defect, actually it should be enhancement.

Thanks

-Lei

Original comment by dav...@gmail.com on 8 Apr 2013 at 3:12

GoogleCodeExporter commented 8 years ago
Sounds good.  In the meantime, if you haven't already, you can create your own 
custom TypeHandler for this.

Original comment by kevin.s...@gmail.com on 8 Apr 2013 at 7:54

GoogleCodeExporter commented 8 years ago
are you talking about the TypeHandler in beanio? can I ask for the source code 
of 2.1.0.M1?

Original comment by dav...@gmail.com on 8 Apr 2013 at 8:47

GoogleCodeExporter commented 8 years ago
There is an example of a custom type handler in the reference guide.  Source 
code can always be found at http://code.google.com/p/beanio/source/checkout.  
(2.1.0.M1 is currently under development on the trunk)

Original comment by kevin.s...@gmail.com on 8 Apr 2013 at 11:40

GoogleCodeExporter commented 8 years ago
Calendar type handler added for 2.1.0.M1.

Type Aliases:
calendar-date
calendar-datetime / calendar
calendar-time

Original comment by kevin.s...@gmail.com on 21 Apr 2013 at 2:29

GoogleCodeExporter commented 8 years ago

Original comment by kevin.s...@gmail.com on 27 Apr 2013 at 11:45