aspose file tools*
The moose likes Object Relational Mapping and the fly likes SessionEdit pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "SessionEdit pattern" Watch "SessionEdit pattern" New topic
Author

SessionEdit pattern

Krishan Chauhan
Ranch Hand

Joined: Mar 12, 2008
Posts: 32
Hi,

Can one tell me about SessionEdit Pattern?

Please see the following example:

SessionBean


Servlet



I don't understand how updating entity in the servlet will update the database? how is it possible? isn't Employee a detached object?
Also, When we cache session bean instance in HttpSession, will it prevent server from destroying bean instance?


thanks,
krishan
Krishan Chauhan
Ranch Hand

Joined: Mar 12, 2008
Posts: 32
Hi,

Can anybody help me on this?


thanks,
krishan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SessionEdit pattern