List of usage examples for org.hibernate.dialect MySQL5InnoDBDialect MySQL5InnoDBDialect
MySQL5InnoDBDialect
From source file:com.isotrol.impe3.pms.core.SchemaTest.java
License:Open Source License
@Test public void mysql() { showSchema(new MySQL5InnoDBDialect()); }
From source file:org.alfresco.util.schemacomp.SchemaComparatorTest.java
License:Open Source License
@Before public void setup() { reference = new Schema("schema", "alf_", 590, true); target = new Schema("schema", "alf_", 590, true); dialect = new MySQL5InnoDBDialect(); }
From source file:org.alfresco.util.schemacomp.ValidatingVisitorTest.java
License:Open Source License
@Before public void setUp() throws Exception { refTable = new Table("reference_table"); refIndex = new Index(refTable, "index_name", Arrays.asList("a", "b", "c")); ctx = new DiffContext(new MySQL5InnoDBDialect(), refSchema, targetSchema); visitor = new ValidatingVisitor(ctx); validators = new ArrayList<DbValidator>(); validators.add(Mockito.mock(DbValidator.class)); validators.add(Mockito.mock(DbValidator.class)); refIndex.setValidators(validators);//from w ww . j a v a 2 s .com targetTable = new Table("target_table"); targetIndex1 = new Index(targetTable, "index_name", Arrays.asList("a", "b", "c")); targetIndex2 = new Index(targetTable, "another_index", Arrays.asList("a", "b", "c")); targetIndex3 = new Index(targetTable, "index_name", Arrays.asList("e", "f")); comparisonUtils = Mockito.mock(ComparisonUtils.class); visitor.setComparisonUtils(comparisonUtils); }
From source file:org.obiba.opal.core.runtime.jdbc.OpalDialectResolver.java
License:Open Source License
@Override protected Dialect resolveDialectInternal(DatabaseMetaData metaData) throws SQLException { String databaseName = metaData.getDatabaseProductName(); int databaseMajorVersion = metaData.getDatabaseMajorVersion(); if ("HSQL Database Engine".equals(databaseName)) { return new MagmaHSQLDialect(); }/*from ww w.j a va 2 s. co m*/ if ("MySQL".equals(databaseName) && databaseMajorVersion > 4) { return new MySQL5InnoDBDialect(); } //TODO support PostgreSQL & MariaDB return null; }