I'm interested in replacing all my project's uses of TimeOfDay with
LocalTime, but I'm running into a difference in how they're persisted
with Hibernate. I have an object where I'm storing the major classes
(DateTime, LocalDate, YearMonthDay, LocalTime, TimeOfDay) that are each
initialized with the default constructor, but the time stored in the
database for LocalTime is five hours behind the one stored for
TimeOfDay.

This seems like a timezone issue, but I'm creating them exactly the same
and from what I understood, LocalTime should be a drop-in replacement,
so I shouldn't need to do any timezone manipulations.

The hibernate mappings I'm using are:

  LocalTime -> PersistentLocalTimeAsTime
  TimeOfDay -> PersistentTimeOfDay

and I'm using the latest version from svn. I see where the
PersistentLocalTimeAsTime persister uses the UTC timezone in
nullSafeGet(), but removing that didn't change anything.

What am I missing?

Thanks,

Chris

--
Chris Winters, Lead Software Engineer
Vocollect Healthcare Systems 
http://healthcare.vocollect.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to