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
.
Since jodatime is included in the Play distribution, I'm thinking there's probably a better way to do this. Is there any way I can make my Model fields DateTime
s instead of java.util.Date
and java.sql.Time
so the conversion is done automatically? Is there another way of streamlining this?
org.hibernate.annotations.Type
but got "Could not determine type for: org.joda.time.contrib.hibernate.PersistentLocalDate`". Anything else I need to set up? Or maybe it's a problem with Play only using Hibernate via JPA rather than directly? – Craven