Hi Hannes, Jonathan's suggestion of MappedDateTime is a good one and one that I have used. However, I haven't been super happy about how time is handled by, in my case, MappedDateTime + java.util.Date + MySQL Datetime. I played around a little with making a MappedField that holds a ScalaTime (ie JodaTime) object that would be persisted in a database as a millisecond UTC timestamp but didn't get very far with it. I believe if you look through this mailing list you'll find someone else (sorry, I forget who!) talking about basically doing just this and sharing some code. Anyway, just another possible approach...
Peter On Feb 21, 10:59 am, Jonathan Hoffman <jonhoff...@gmail.com> wrote: > Does MappedDateTime do what you want? > > Also look at MappedEnum for the status > > On Feb 21, 2010, at 6:07 AM, Hannes wrote: > > > > > Hi Lifters, > > > I'm using Mapper with Lift 1.1-M7 and I need to have some information about > > time. > > > Especially I wanna store a time-stamp for a status field that can have > > three values: NEW; OPEN; CLOSED; > > > So, what I thought about was defining two new fields open_time and > > close_time that I'd use to filter/sort items. > > > thanks for any ideas! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Lift" group. > > To post to this group, send email to lift...@googlegroups.com. > > To unsubscribe from this group, send email to > > liftweb+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.