-->
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: Hibernate Migration Question and Help
PostPosted: Thu Mar 10, 2016 6:52 am 
Newbie

Joined: Thu Mar 10, 2016 6:44 am
Posts: 1
Hi

I have some very old code in a project. Its a java webapp using tomcat as the server.

The project use a single bean that handles sql queries and sql updates. The bean has two methods get and set and they take an SQL string and use JDBC via tomcat connection pool to either perform the query and turn it into a vector of vector of string or initiate an update and return last insert ID . Of course this needs to change.

The problem I have is the project is very large and I cant migrate everything - including all queries etc to hibernate in one go, but some of the new functionality would of course benefit from a better approach while we slowly remove or the old ways.

So question is can I continue to have the old SQL beans doing what it does and also use hibernate. They would both share the tomcat connection pool.

Will doing transactional hibernate stuff be interfered with by performing queries elsewhere using the old bean. I dont mean at the actual database transaction level but more in terms of will hibernate have issue with other queries going on it does not know about ?


Top
 Profile  
 
 Post subject: Re: Hibernate Migration Question and Help
PostPosted: Thu Mar 10, 2016 11:49 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1630
Location: Romania
It should be fine because transactions are coordinated at JDBC level. It's best if you make the transition at service level and avoid calling DAO belonging to different approaches.


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.