-->
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: Migrating to 4.3 soon, register Interceptor using spring
PostPosted: Tue Jun 25, 2013 4:26 am 
Newbie

Joined: Tue Jun 25, 2013 4:14 am
Posts: 2
Hello Community,

we are using spring with JPA and will migrate to Hibernate 4.3 as soon as released. For research, I set version to 4.3.0.Beta1 and saw, that Ejb3Configuration class has been removed. We used this class to register an Interceptor and custom user types via HibernatePersistence class:

Code:
public EntityManagerFactory createEntityManagerFactory(
         String persistenceUnitName, Map properties) {
      Ejb3Configuration cfg = new Ejb3Configuration();
      Ejb3Configuration configured = cfg.configure(persistenceUnitName,
            properties);

      registerUserTypes(userTypes, cfg.getHibernateConfiguration());
      registerInterceptor(interceptor, cfg.getHibernateConfiguration());

      return configured != null ? configured.buildEntityManagerFactory()
            : null;
}


Can someone tell me, what's the correct way to achieve this with Hibernate 4.3?

Thank you!


Top
 Profile  
 
 Post subject: Re: Migrating to 4.3 soon, register Interceptor using spring
PostPosted: Thu Nov 21, 2013 9:37 am 
Newbie

Joined: Tue Jun 25, 2013 4:14 am
Posts: 2
//push

4.3 will be released in a few weeks, still got no idea how to achieve this. Can anyone help me please?

Thank you!


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.