return super.buildSessionFactory();
// fix the issue of hsqldb write delay stupid default value
SessionFactory fac = super.buildSessionFactory();
try
{
SessionImpl hib = (SessionImpl)fac.openSession();
hib.beginTransaction();
Statement stat = hib.getJDBCContext().borrowConnection().createStatement();
stat.executeUpdate("SET WRITE_DELAY FALSE");
hib.getTransaction().commit();
stat.close();
hib.close();
LOG.info("SET WRITE_DELAY FALSE");
}
catch (Exception e)
{
throw new Error(e);