Jadira is the home for Sousan and Chris Pheby's open source projects. These are reusable open source Java modules that provide first class solutions using the most effective current JEE technologies.

Tag Cloud

Jadira Support > Query with restrictions on start or end dates using PersistentInterval


How do I do a Hibernate Criteria or HQL query with restrictions on start or end dates using org.jadira.usertype.dateandtime.joda.PersistentInterval ?

April 5, 2011 | Unregistered CommenterTMS

This capability is in trunk but not yet released. If you build trunk from Subversion you will find that the usertype implements Hibernate's CompositeUserType. There's a good discussion of CompositeUserTypes here: http://www.jroller.com/whoami/entry/hibernate_compositeusertype_and_x509certificate

In the case of PersistentInterval, the property names are 'begin' and 'end'.

Thanks Chris

April 15, 2011 | Registered CommenterChris


I'm also very interested in this feature :-) Do you have an available snapshot repository for maven ?

Thanks for your help :-)

May 5, 2011 | Unregistered CommenterRomain Sertelon


I have release 1.9 (for Hibernate 3.x) and 2.0 (for Hibernate 4.x). These introduce the CompositeUserType implementation,

July 7, 2011 | Registered CommenterChris