package org.ligoj.bootstrap.core.dao;

import org.hibernate.dialect.MySQL55Dialect;

/**
 * MySQL dialect with enforced UTF-8 encoding.
 */
public class MySQL5InnoDBUtf8Dialect extends MySQL55Dialect {

	@Override
	public String getTableTypeString() {
		return super.getTableTypeString() + " DEFAULT CHARSET=utf8";
	}

}

@@ -76,16 +76,79 @@
 Dialect;
+%0Aimport org.hibernate.engine.jdbc.env.spi.NameQualifierSupport;
 %0A%0A/**%0A *
@@ -375,10 +375,118 @@
 8%22;%0A%09%7D%0A%0A
+%09@Override%0A%09public NameQualifierSupport getNameQualifierSupport() %7B%0A%09%09return NameQualifierSupport.NONE;%0A%09%7D%0A%0A
 %7D%0A

Fix HBM2DLL with hibernate 5.2+