*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SessionEdit pattern
 
Similar Threads
how to create insert, update, delete buttons on the same page?
persistence.xml file for MS SQL Server 2000
Polymorphism
HttpSessionBindingListener
sorting table columns