From: Chris P. <ch...@ja...> - 2012-11-12 13:18:39
|
Hi Phill, Thanks for the report. The implementation relied on Period's String representation. The next release will support any of the built-in types (including with fields removed). They will be included following the period in the form '{' + periodType + '}'. For standard periods, no indication of the type needs to be given. This fix is in Svn. Regards Chris -----Original Message----- From: Phill [mailto:ph...@in...] Sent: 12 November 2012 14:19 To: use...@li... Subject: [Usertype-discuss] PersistentPeriodAsString and PeriodType Hi I'm persisting a Period with a single field PeriodType but when read back from Hibernate is has a PeriodType of 'Standard'. Period p = new Period().withHours(1).withPeriodType(PeriodType.hours()); p.getPeriodType().equals(PeriodType.hours()); // this is true ... persist and retrieve p.getPeriodType().equals(PeriodType.hours()); // no longer true Is this the expected behaviour or a bug? -Phill ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Usertype-discuss mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/usertype-discuss |