Allow alternatives to XMLGregorianCalendar for xsd:dateTime
See original GitHub issueCurrently there’s no way to configure scalaxb to use anything but XMLGregorianCalendar
for xsd:dateTime
and other time-related types in generated classes. It would be convenient to use java.time.*
classes instead, either by default or based on a config value.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:15
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Replacing date of type XmlGregorianCalendar generated by ...
I want to convert date from XmlGregorianCalendar to java.util.Date. Have referred : how replace XmlGregorianCalendar by Date? but not able to ...
Read more >Converting XMLGregorianCalendar to Date in Java
Using the Java API, we can easily convert XMLGregorianCalendar to XMLGregorianCalendar Date and Date in Java. By the way, it's nice to note...
Read more >How to convert XMLGregorianCalendar to Date ... - Javarevisited
Java program to convert XMLGregorianCalendar to Date in Java and vice-versa. You can either convert XMLGregorianCalendar to java.util.Date or java.sql.
Read more >XMLGregorianCalendar.getMillisecond - Java - Tabnine
Returns the lexical form of the XSD dateTime value according to ... Convert an {@link XMLGregorianCalendar} (assumed to be in UTC) into a...
Read more >Unmarshalling Dates Using JAXB - Baeldung
Let's focus on the xsd:dateTime data type because it's a superset of ... the default mapping for xsd:dateTime is the XMLGregorianCalendar, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey Tristan, @tOverney Great work but here are two notes about your works:
This is why I asked that question.
How about super flexible parameter:
dateTypeClass
where user could provide a full path to the desired class. default:javax.xml.datatype.XMLGregorianCalendar
some would useorg.joda.time.DateTime
and others (like me)java.util.String
.You can read in the #543 why this would be important.
Do you think it could work?