-->
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.  [ 1 post ] 
Author Message
 Post subject: JPA: How to programmatically initialize hibernate session?
PostPosted: Wed Jan 29, 2014 10:48 am 
Newbie

Joined: Wed Jan 29, 2014 10:39 am
Posts: 1
We're using JBoss + Hibernate as our JPA implementation, and we're using container-managed persistence contexts.

We use Hibernate Filters, and we'd like to define a default set of filters that will be in-force whenever one obtains a JPA EntityManager.

Is it possible to programmatically initialize the Hibernate Session (e.g. to install a default set of filters), while leaving the container to otherwise manage the persistence context?


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

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.