External usage of lift ORM

View: New views
3 Messages — Rating Filter:   Alert me  

External usage of lift ORM

by Marcin Jurczuk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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,

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


Parent Message unknown Re: External usage of lift ORM

by Naftoli Gugenheim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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.

-------------------------------------
Marcin Jurczuk<mjurczuk@...> wrote:


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,



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


Re: External usage of lift ORM

by bearfeeder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Mon, Nov 2, 2009 at 3:26 PM, Marcin Jurczuk <mjurczuk@...> wrote:

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 ?

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

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