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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…