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

Reply via email to