Dear Pravin.
Your requests address very basic behaviour of the framework, and you
should not experience any problem in adapting examples from the
aforementioned book.
Even simpler you could follow the Todo example in Getting Started with
Lift accessible from liftweb site (http://liftweb.net/docs/
getting_started/mod_master.html).
Related to persistency at the moment you should concentrate on using
Mapper.
Creating your model object is a breeze. Create a MyItem.scala file
with the following entities (your project should have a model package
to contain this stuff)

class MyItem extends LongKeyedMapper[MyItem] with IdPK {
def getSingleton = MyItem
object name extends MappedPoliteString(this,64)
}
object MyItem extends MyItem with LongKeyedMetaMapper[MyItem]


Modify the Schemifier line in Boot.scala to add your MetaMapper object
Schemifier.schemify(true, Log.infoF _, User, MyItem)

... and now you can start having fun in creating the next web killer
app using Lift.

Regards
Giuseppe

On 30 Lug, 07:52, pravin <[email protected]> wrote:
> Hi,
> Guys i am new to Lift.
>
> I want to use mapper and record framework.
>
> I have following case:
>
> 1. Table with two column [id,name] ...// I have MySQL DB
>
>  2. i want to fire select query on above table
>
>  3. Display above result on GUI
>
> How can i do this with mapper and record:
>
> I done with Boot.scala chages as per steps mentioned in "Exploring
> Lift: Scala-based Web Framework" book
> but i am not able to create mapper or record class ...how can i do
> this and put query on top of this.
>
> Also where can i get detail information about mapper and record
> framework as above book is not sufficient for this
>
> Thanks in advance..
> -Pravin

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to