Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring AOP around advice for Managing Hibernate Session

 
Shriram Gopalakrishnan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic