aspose file tools*
The moose likes Object Relational Mapping and the fly likes Spring AOP around advice for Managing Hibernate Session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Spring AOP around advice for Managing Hibernate Session" Watch "Spring AOP around advice for Managing Hibernate Session" New topic
Author

Spring AOP around advice for Managing Hibernate Session

Shriram Gopalakrishnan
Ranch Hand

Joined: Feb 20, 2007
Posts: 44
I am trying to abstract Dao layer with all calls to create/close hibernate sessions to around advice using spring aop but want to know how would some of the hibernate CRUD api's utilize the session created by around advice for example:



Are we allowed to use session variable s in the method which was created by @around advice, If not what is the alternative to achieve this?
 
 
subject: Spring AOP around advice for Managing Hibernate Session