If you'd like to see this feature, please post a feature request at
http://sourceforge.net/tracker/?atid=617892&group_id=97367&func=browse.

I'd suggest posting a patch as well, as I don't use hibernate and so
can't really use it.

Stephen


On 27/08/2007, Ignacio Coloma <[EMAIL PROTECTED]> wrote:
> Short version: Is there any plan to support package-info.java with
> Hibernate/JPA and Joda?
>
> Long version: there is a little known feature in Hibernate that allows
> to add custom types by annotating package-info.java files like this:
>
> ---
> @org.hibernate.annotations.TypeDefs({
>         @org.hibernate.annotations.TypeDef(
>                         name="JodaDateTime",
>                         typeClass = 
> org.joda.time.contrib.hibernate.PersistentDateTime.class
>         ),
> })
>
> package org.joda.time;
> ---
>
> And in any of your persistent java classes, you could use this as:
>
>         private DateTime validFrom;
>
> or
>
>         @Type(type="JodaDateTime")
>         private DateTime validUntil;
>
> The thing is, the package-info.java file must be in the org.joda.time
> package. Are there any plans to put it there, or should I post a
> feature request/bug/patch somewhere?
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Joda-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to