Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to XMLGregorianCalendarAsDateTime.java #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

remillet
Copy link

@remillet remillet commented Dec 15, 2017

I'm using the hyperjaxb3 Maven plugin to generate my object classes from XML Schema file (i.e., *.xsd files). I noticed the generated object classes use this class' (XMLGregorianCalendarAsDateTime) createCalendar() method to marshal datetime information from Hibernate/JPA into my objects. Since the createCalendar() method isignoring timezone data, my objects with datetime fields are not getting their timezones set.

This change is needed to marshal the "datetime" timezone information coming from Hibernate/JPA.

I'm using the hyperjaxb3 Maven plugin to generate my object classes from XML Schema file (i.e., *.xsd files).  I noticed the generated object classes use this class' (XMLGregorianCalendarAsDateTime) createCalendar() method to marshal datetime information from Hibernate/JPA into my object.  Since the createCalendar() method was ignoring timezone data, my objects with datetime fields were not getting their timezones set.

This change is needed to marshal the "datetime" information from Hibernate/JPA.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant