-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Additional actions in sessionFactory.openSession()
PostPosted: Thu Apr 20, 2006 7:48 am 
Newbie

Joined: Thu Apr 20, 2006 7:28 am
Posts: 1
Location: Dresden, Germany
Hello,
I have to activate a password-secured oracle role in sessionFactory.openSession(). How can I achieve this?

Thanks in advance,

Matthias


Top
 Profile  
 
 Post subject: Re: Additional actions in sessionFactory.openSession()
PostPosted: Thu Apr 20, 2006 11:51 am 
Senior
Senior

Joined: Mon Aug 22, 2005 5:45 am
Posts: 146
matthias61 wrote:
Hello,
I have to activate a password-secured oracle role in sessionFactory.openSession(). How can I achieve this?

Thanks in advance,

Matthias


as to my knowledge hibernate does not provide an event/interceptor for something like onSessionCreation().

It would be nice to overwrite SessionImplementor and provide the class thru hibernate-config. But I'm afraid that's not supposed to be a pattern also.

So, I guess you need to check out the hibernate sources and patch org.hibernate.impl.SessionImpl.java
good luck ;)

_________________
Please don't forget to give credit, if my posting helped to solve your problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.