title: org.hibernate.ejb.Ejb3Configuration deprecated in hibernate
body: <p>In my web application, I am using Spring-Data and JPA/Hibernate.My senario is I have to create separate schema company wise.so I am taking username,password and companycode while login .Taking company code will help to find out scheme for that company.My database schema will change according to user logged in so in order to do that I have written hibernate interceptor as describe by <a href="http://blog.krecan.net/2009/01/24/spring-managed-hibernate-interceptor-in-jpa" rel="nofollow">http://blog.krecan.net/2009/01/24/spring-managed-hibernate-interceptor-in-jpa</a> but since it is using org.hibernate.ejb.Ejb3Configuration which is going to be deprecated so can anyone tell me other alternative way ? </p>