External usage of lift ORM

10 views
Skip to first unread message

Marcin Jurczuk

unread,
Nov 2, 2009, 5:26:04 PM11/2/09
to Lift
Hello,

I would like to use lift ORM(Mapper) without lift, as a part of small
cli app.
I assume that it is possible but question is how to "init" MetaMapper/
Mapper class/objects without Boot.scala and DB setup inside it ?

Best regards,

Naftoli Gugenheim

unread,
Nov 2, 2009, 8:20:03 PM11/2/09
to lif...@googlegroups.com
Do the same thing you do in Boot, at some point in you program before you access your Mappers.
You may need more jars than just the lift-mapper jar.

-------------------------------------

David Pollak

unread,
Nov 3, 2009, 9:13:45 AM11/3/09
to lif...@googlegroups.com

As Naftoli mentioned, just make the same calls as you would in Boot (setting the DB provider, schemifying, etc.) in your app's initialization code.

Note that Mapper depends on lift-webkit, but this should not get in the way (other than consuming some space in the JVM) for other apps.
 

Best regards,





--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
Reply all
Reply to author
Forward
0 new messages