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";
	}

}

package org.ligoj.bootstrap.core.dao;

import org.hibernate.dialect.MySQL55Dialect;
import org.hibernate.engine.jdbc.env.spi.NameQualifierSupport;

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

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

	@Override
	public NameQualifierSupport getNameQualifierSupport() {
		return NameQualifierSupport.NONE;
	}

}

Fix HBM2DLL with hibernate 5.2+
Fix HBM2DLL with hibernate 5.2+

see https://stackoverflow.com/questions/44924930