Hi,

Why should I use JPA as vs using Liftwebs built in database mappers.
Lets say I build a 100 table mysql database, I'm mostly doing forms,
user input, tables out.
Is there something unattractive about using Liftwebs built in mapper?
I don't like the name MetaMegaProtoUser, but thats just aesthetics.

Currently I can generate lots of Java JPA classes from database using
SEAMs generation ant script, my thought was then to use those Java
classes and convert them over to Scala JPA as in the example project.
However I don't know why to do this as opposed to using Liftweb's
mapper.

I'm also worried about something and not sure if I should be worried
about it. JBoss SEAM has this concept of conversational state and it
can keep the JPA transaction manager open from one page to another
page, through use of the session. SEAM claims this is a good idea and
we shouldn't be closing the transaction manager on each call. Also it
can keep a transaction open for a long time through page views.
However, I don't see why or when I would need to do a transaction with
multiple page views involved in it. I mean, even large websites like
facebook, I doubt they do this - they use PHP. Why not just do the
transaction in one call?

SEAM also has this concept of avoiding the Hibernate
LazyInitializationException, so if your navigating down some objects
relations, it will load the lazy relations as you navigate down. So
you don't need to re-query the database, because of the transaction
manager being open between pages, it will load the Hibernate objects
that are lazy loaded as you navigate a O-R structure.
Of course this sounds attractive in regards to SEAM.
What if I navigated structures in Liftweb using the built in mapper -
is there any concern I should have?

Thanks, Philip


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