Set Table character-set/collation using Hibernate Dialect?

前端 未结 1 1668
我寻月下人不归
我寻月下人不归 2021-02-10 05:48

I use Hibernate MySQLInnoDB Dialect to generate DDL\'s.

hibernate.cfg.xml :

org.hibernate.dialect.MySQLInnoDBD         


        
相关标签:
1条回答
  • 2021-02-10 06:16

    I had the same requirement before and used this article which provides the solutions in great detail. You need to subclass MySQLInnoDBDialect and override the getTableTypeString method. More in the article.

    0 讨论(0)
提交回复
热议问题