-->
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.  [ 4 posts ] 
Author Message
 Post subject: differences between MySQL5Dialect and MySQL5InnoDBDialect
PostPosted: Sun Jan 14, 2007 4:57 pm 
Beginner
Beginner

Joined: Fri Jun 23, 2006 6:40 pm
Posts: 25
Hello guys
(sorry for my grammar)

in these days i did an updagrade from mysql 4.13 to mysql 5.0.27

and now in my java application i change the dialect for Hibernate to MySQL5InnoDBDialect

i have a big doubt
what is really the difference between
MySQL5Dialect and MySQL5InnoDBDialect ???

i saw this link
http://www.hibernate.org/hib_docs/v3/ap ... mmary.html

and if i see each class, i only see a simple "extension" of classes, no more explanation

is there some documentation for this???

thanks for advanced

_________________
kill your pride, share your knowledge with all


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 7:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
InnoDB dialect emmits the InnoDB attributes for DDL generation. This is for setups where the DB may not default to InnoDB storage.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 8:48 pm 
Beginner
Beginner

Joined: Fri Jun 23, 2006 6:40 pm
Posts: 25
hello David

thanks for your reply

david wrote:
InnoDB dialect emmits the InnoDB attributes for DDL generation. This is for setups where the DB may not default to InnoDB storage.


i am not expert in this scope, and your explanation was short (dont take this how an ofense), but when i should choice each dialect???, i need a real example or more details

thanks for advanced

_________________
kill your pride, share your knowledge with all


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 15, 2007 9:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You want to have transactional tables, InnoDB being one possible choice, when using MySQL. My understanding is that its on by default (from MySQL 4.x). The only difference are the SQL commands that are generated to create the tables etc. The InnoDB dialect forces the InnoDB tables thus they are transactional - as required by Hibernate. So which should you use - MySQL 5 should not matter as the DB defaults (unless someone changed the DBs default configuration). So to make sure use the InnoDB form of the dialect.


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