开发者

What Hibernate 3.5.1 Dialect is best for accessing MySQL 5.1

开发者 https://www.devze.com 2023-02-07 11:00 出处:网络
Right now I am using InnoDB tables but what confuses me is what if I am using more than one engine in the DB?

Right now I am using InnoDB tables but what confuses me is what if I am using more than one engine in the DB?

Since I used 'best' in the开发者_如何学编程 title it warns that the question is subjective but considering the very finite numbers of Dialects in question and that I don't understand the discriminating factors between them (what best is) I need this explained in the answer.

For reference here are the Dialects in question found under org.hibernate.dialect:

  • MySQL5Dialect
  • MySQL5InnoDBDialect
  • MySQLDialect
  • MySQLInnoDBDialect
  • MySQLMyISAMDialect


MySQL InnoDB enforces referential integrity; ISAM does not.

MySQL version 5 is distinct from earlier versions.

MySQLDialect is probably legacy from the first Hibernate implementation, when there was no such choice.

Choose the one that best matches your version of MySQL (version 5 from your question) and the implementation you've used to create to your MySQL database.

0

精彩评论

暂无评论...
验证码 换一张
取 消