It works now, I missing the dbDefaultConnectionIdentifier definition in the others models.
Thank you very much! :) Cheers, Neil On Dec 7, 12:06 am, "Neil.Lv" <anim...@gmail.com> wrote: > Thanks Tim, > > I have tried it in my code but it doesn't work yet! > > The lift version is: 1.1-M7 > Scala Version is: 2.7.7 > > Cheers, > Neil > > On Dec 6, 10:52 pm, Tim Nelson <tnell...@gmail.com> wrote: > > > I did some more digging and got a sample app to work. You can see the code > > here:http://github.com/eltimn/lift_1_1_sample > > > There are 2 things I had to do. The first is to pass in the DbId when > > calling Schemifier; > > > Schemifier.schemify(true, Log.infoF _, OneDB, User) > > Schemifier.schemify(true, Log.infoF _, TwoDB, Dog) > > > This was the cause of the NPE earlier. > > > The second thing I did was to create 2 separate DBVendor objects. I > > could not get this to work with one that matches on the > > ConnectionIdentifier, like the example in The Lift Book. I didn't dig > > into why this wasn't working, so it could be the way the code is > > written. > > > DB.defineConnectionManager(OneDB, DBVendor_1) > > DB.defineConnectionManager(TwoDB, DBVendor_2) > > > Tim -- 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.