Yes I could do that - not sure what I need to do with connections etc to make that happen though :wistle:
Naftoli Gugenheim wrote: > > If you only initialize the database all at once, why not just put the code > in Boot? > > ------------------------------------- > Channing Walton<[email protected]> wrote: > > > Looking around MetaMapper and Schemifier, it looks like I could override > BaseMetaMapper.afterSchemifier to do what i want although I would need to > nominate a mapper to do this work (User would suffice). > > I'll try it... > > > Timothy Perrett wrote: >> >> You could in theory have some run task that just essentially executed >> a bunch of mapper calls, but it sounds like you want more of a build >> up and tear down approach a la: >> >> http://code.google.com/p/scala-migrations/ >> >> Perhaps that is what you are after? >> >> Cheers, Tim >> >> On Jan 31, 11:59 am, Channing Walton <[email protected]> wrote: >>> Hi, >>> I am building an app which needs some static data added whenever we >>> rebuild >>> the database. I would like to do that using the mapper api but it looks >>> like >>> I need to do it table by table by overriding dbAddTable. I would prefer >>> to >>> do this in one place for the whole model, preferably using the mapper >>> api >>> rather than sql. >>> >>> Is there a way to do that, perhaps in Boot? >>> -- >>> View this message in >>> context:http://old.nabble.com/static-data-tp27392115p27392115.html >>> Sent from the liftweb mailing list archive at Nabble.com. >> >> -- >> 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. >> >> >> > > -- > View this message in context: > http://old.nabble.com/static-data-tp27392115p27396183.html > Sent from the liftweb mailing list archive at Nabble.com. > > -- > 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. > > -- > 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. > > > -- View this message in context: http://old.nabble.com/static-data-tp27392115p27396529.html Sent from the liftweb mailing list archive at Nabble.com. -- 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.
