开发者

In JDO/DataNucleus can I query for a Joda-Time DateTime object?

I see that开发者_开发技巧 DataNucleus supports org.joda.DateTime

http://www.datanucleus.org/products/accessplatform_2_2/jdo/types.html

But does this mean I can index this field and perform queries against this time field, such as "where jodaTimeField > yesterday"?

Or is it only that it can be stored without needing to resort to serialization?


JodaTime types operate in JDOQL like any other Java type. Tests exist (used against RDBMS) http://datanucleus.svn.sourceforge.net/viewvc/datanucleus/test/accessplatform/trunk/test.jdo.jodatime/src/test/org/datanucleus/tests/QueryTest.java?revision=10387&view=markup

Never tried against other datastore types

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜