Refactored HibernateGenericDialect