Persist Joda-time's DateTime via Hibernate

后端 未结 4 1250
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 18:33

I\'m using Jodatime in my Play app, but currently having to do a bunch of converting back and forth from/to java.util.Date and java.sql.Time.

4条回答
  •  时光说笑
    2020-12-13 18:59

    We should enable two jars in Hibernate 4 project:

    • compile("joda-time:joda-time:2.8")
    • compile("org.jadira.usertype:usertype.jodatime:2.0.1")

提交回复
热议问题