collation « MySQL « JPA Q&A





1. Use MySQL collation in Java    stackoverflow.com

Short Version

I'm currently looking into an issue with MySQL collations and how they affect a Set of values (which is mapped using Hibernate, but that shouldn't matter for now). I want ...

2. Set Table character-set/collation using Hibernate Dialect?    stackoverflow.com

I use Hibernate MySQLInnoDB Dialect to generate DDL's. hibernate.cfg.xml :

<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
How can I configure the character-set/Collation to 'utf8_general_ci' for the generated table?