[Lift] Re: create todo item during boot

2009-04-15 Thread Tobias Daub
Dave, thanks alot man! cheers Tobias > Dude... it's the magic of dbAddTable in the MetaMapper object: > > in object ToDo... add: > > override def dbAddTable = Full(populate _) > > private def populate { > ToDo.create.().save > } > > When Schemifier adds a table, it

[Lift] Re: create todo item during boot

2009-04-15 Thread Tobias Daub
Yeah, I though about that too, but I couln't find an appropriate place in the code where to hook in. > You can probably do that in you Lift Boot class after you DB > connections are setup etc. > > > Br's, > Marius > > On Apr 15, 6:55 pm, Tobias Daub wrote: > >> Hi There, >> >> I wanna have

[Lift] Re: create todo item during boot

2009-04-15 Thread David Pollak
Dude... it's the magic of dbAddTable in the MetaMapper object: in object ToDo... add: override def dbAddTable = Full(populate _) private def populate { ToDo.create.().save } When Schemifier adds a table, it will invoke the function specified by dbAddTable and that's

[Lift] Re: create todo item during boot

2009-04-15 Thread marius d.
You can probably do that in you Lift Boot class after you DB connections are setup etc. Br's, Marius On Apr 15, 6:55 pm, Tobias Daub wrote: > Hi There, > > I wanna have some kind of "standard" todo item, that should always be > there (in the database). I Don't want to create that todo item man