Hi Alison,

I included this capability in the usertype library which provides
Hibernate UserTypes which can be used with Joda Time and JSR 310.

http://usertype.sourceforge.net/apidocs/org/jadira/usertype/dateandtime/
joda/PersistentLocalDate.html
http://usertype.sourceforge.net/apidocs/org/jadira/usertype/dateandtime/
jsr310/PersistentLocalDate.html

Regards 


Chris

-----Original Message-----
From: Alison Winters [mailto:alisonatw...@gmail.com] 
Sent: 14 July 2010 22:27
To: joda-interest@lists.sourceforge.net
Subject: [Joda-interest] using Hibernate to persist LocalDate to SQL
DATEtype column

Hi,

I've searched the archives and I haven't found any reference to this: is
there a reason why the existing Joda Time Hibernate library doesn't
provide a way to persist LocalDate instances to an SQL DATE type column?
LocalDate instances can currently only be persisted as an SQL TIMESTAMP
type, which is too precise for certain types of data. I would like to
see a PersistentLocalDateAsDate class that works like
PersistentLocalTimeAsTime, but for date values. Is the lack of this
feature designed in for some reason or is it just an oversight? I would
be happy to supply a patch if needed.

Alison


------------------------------------------------------------------------
------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to