Prevalence and Web Applications
Elmar Weber <[email protected]> Sun, 16 Dec 2012 01:13:16 +0100
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've a question how people use Prevalence or prevayler in web applications. Here is a simple scenario and then the question where my problem is: A simple multi user application to edit a shared data pool, e.g. a customer management system where users can search for customers and then edit single objects in a multi page form. How do you handle modifications to customer objects in the UI part of the web application? Your typical Java web framework binds the UI fields to your object and updates it continuously (e.g. via ajax requests) until the user saves the changes and persists the object. The way I see it, it is not possible to do this with prevalence, i.e. I cannot use the object I received from a query for a customer in the UI because any changes would be saved in a snapshot since it is the same instance. I either have to create a copy of the persisted object or have a different set of objects for my UI. Both solutions seem like a workaround to me. When solving this with classical ORM persistance, e.g. Hibernate and a database, its easy to use the same objects and don't worry about modifications until an explicit commit on the transaction. How do you solve this with web applications using prevalence? Thanks & ciao, elm ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org