I have a Grails domain class called Event. It has a startTime
and an endTime
. What object would these two fields be represented as? I need them to persist to the database, so keep that in mind. I don't need to do anything with a particular date, just a particular time of the day, and I'll probably need to do some time calculation (making sure endTime is after startTime and such)
So...would it be easier to use a java.sql.Time
, something in the groovy.time
package, Integers, or something else? Thanks!