On Wed, Aug 19, 2009 at 10:14 PM, Grant Wood <[email protected]> wrote:

>
> David,
>
> I'm developing with Derby.


Please add this class:

import net.liftweb._
import mapper._

class DateTest extends LongKeyedMapper[DateTest] with IdPK {

  def getSingleton = DateTest

  object date extends MappedDateTime(this)

}

object DateTest extends DateTest with LongKeyedMetaMapper[DateTest]

And in boot, schemify DateTest and at the end of Boot, include the lines:

 DateTest.create.date(now).save

    for {
      dt <- DateTest.findAll()
    } println("Date: "+dt.id+" "+dt.date.is)

Then send the output


>
> I've been running Lift 1.0
>
> -Grant
>
>
> On Aug 19, 1:51 pm, David Pollak <[email protected]>
> wrote:
> > Grant,
> >
> > What database are you using?
> >
> > What version of Lift?
> >
> > Thanks,
> >
> > David
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to