-->
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: Hibernate Transaction and MySQL myISAM, innoDB
PostPosted: Tue Apr 19, 2011 5:01 am 
Newbie

Joined: Mon Jan 24, 2011 1:38 pm
Posts: 8
Hello together,

Im working on a developing a webapplication with Spring 3.0.5, Hibernate 3.6. and mySQL Community Server 5.1. I have a question regarding the transaction management.

1) First of all: is it correct, that when you use hibernate you MUST use transactions? there is no way to avoid that transactions must be used? I read that all over the internet, but I thought that the database itself would be responsible for transactions, not hibernate. (I read so often, that hibernate needs to use transactions always, even when only reading data, but its mySQL which provides the implementation of transactional behaviour)

2) If I must use transactions with hibernate, how is it then possible that myISAM storage engines can be used? they don't support transactions so I dont understand why its possible to use them.

3) I researched if its possible to use both together, myIsam and innoDB, in one hibernate application. is it correct, that it is possible by defining two different session factories (working on the same database, but with different tables?) Im not sure if thats a good solution.

It would be great to get some answers! thank you! :-)


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.