Hi Ignacio!
> The question is, my idea is to persist the Duration as the
> milliseconds value, but I am not sure about what to do with LocalTime.
> Using milliseconds of the day sounds good, but (a) it's much harder to
> restore the LocalTime value from the SQL value, and (b) it's harder to
> read by visual inspection of the database. My second idea was to use a
> "hh:MM:ss.mmm" format, persisted as a String.
>   
Isn't it possible to simply store the milliseconds into the database
with a date/timestamp column?
As far as I know the database do not necessarily maintain a timezone, so
there should be no problem to do so and any database query tool will be
able to show a human readable representation of if.

Ciao,
Mario


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to