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.  [ 7 posts ] 
Author Message
 Post subject: MySQLInnoDBDialect or MySQLMyISAMDialect
PostPosted: Thu Jul 14, 2005 2:23 am 
Newbie

Joined: Wed Aug 27, 2003 4:39 am
Posts: 10
We are trying to migrate our data from MySQL ISAM to InnoDb to get transaction support. How does Hibernate identify the type of servlet engine. Would it be sufficient to use the MySQLDialect or do we have a subset based on the type of engine.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 14, 2005 2:43 pm 
Senior
Senior

Joined: Wed Jul 13, 2005 4:31 pm
Posts: 142
Location: Seattle, WA
I use a mix of MyISAM and InnoDB. I didn't have to use the separate dialects.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 1:05 am 
Newbie

Joined: Wed Aug 27, 2003 4:39 am
Posts: 10
From previous experience with MyISAM, I recall that an exception is raised when we try to do something along the lines of session.connection().setAutocommit(false); because the underlying databse does not support transactions. But this should not be happening with InnoDb. Does this mean that the developer will need to handle any issues that arise when we use a combination of the two or will hibernate handle this transparently. I noticed that hibernate3 supports separate dialects for the two.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 6:47 pm 
Senior
Senior

Joined: Wed Jul 13, 2005 4:31 pm
Posts: 142
Location: Seattle, WA
The best I can tell you is that I use it within EJB 3.0 entity beans called from session beans. The default transaction for session beans is 'requires'.

I am not certain what is going on behind the scenes. But, it just works.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 7:11 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Thats a novel approach to transaction processing :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 7:25 pm 
Senior
Senior

Joined: Wed Jul 13, 2005 4:31 pm
Posts: 142
Location: Seattle, WA
...you mean...it just works... that's the goal, right?

:)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 17, 2005 11:24 pm 
Newbie

Joined: Wed Aug 27, 2003 4:39 am
Posts: 10
Thanks for this.

We intend to keep it simple for now and not use entity beans. We do plan to use the Spring framework though to handle transactions and opening and closing of sessions. I assume then it would be safe to have a combination of both storage engines in a single logical database and use the MYSQLDialect alone.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.