@Test public void testGetSqlType_bigint() throws Exception { SqlType type = dialect.getSqlType(Types.BIGINT); assertEquals("bigserial", type.getDataType(10, 0, 0, true)); assertEquals("bigint", type.getDataType(10, 0, 0, false)); }
@Override public SqlType getSqlType(ValueTypeProvider valueTypeProvider, PropertyMeta propertyMeta) { if (propertyMeta.isLob()) { if (propertyMeta.getPropertyClass() == String.class) { return getSqlTypeInternal(Types.CLOB); } } ValueType valueType = valueTypeProvider.provide(propertyMeta); return getSqlTypeInternal(valueType.getSqlType()); }
PostgreGenDialect extends StandardGenDialect { @Override public SqlType getSqlType(ValueTypeProvider valueTypeProvider, PropertyMeta propertyMeta) { if (propertyMeta.isLob()) { if (propertyMeta.getPropertyClass() == String.class) { return getSqlTypeInternal(Types.CLOB); } } ValueType valueType = valueTypeProvider.provide(propertyMeta); return getSqlTypeInternal(valueType.getSqlType()); } }
PostgreGenDialect extends StandardGenDialect { @Override public SqlType getSqlType(ValueTypeProvider valueTypeProvider, PropertyMeta propertyMeta) { if (propertyMeta.isLob()) { if (propertyMeta.getPropertyClass() == String.class) { return getSqlTypeInternal(Types.CLOB); } } ValueType valueType = valueTypeProvider.provide(propertyMeta); return getSqlTypeInternal(valueType.getSqlType()); } PostgreGenDialect(); }
PostgreGenDialect extends StandardGenDialect { @Override public SqlType getSqlType(ValueTypeProvider valueTypeProvider, PropertyMeta propertyMeta) { if (propertyMeta.isLob()) { if (propertyMeta.getPropertyClass() == String.class) { return getSqlTypeInternal(Types.CLOB); } } ValueType valueType = valueTypeProvider.provide(propertyMeta); return getSqlTypeInternal(valueType.getSqlType()); } PostgreGenDialect(); @Override String getName(); @Override SqlType getSqlType(ValueTypeProvider valueTypeProvider,
            PropertyMeta propertyMeta); @Override String getDefaultSchemaName(String userName); @Override GenerationType getDefaultGenerationType(); @Override boolean supportsSequence(); @Override String getSequenceDefinitionFragment(String dataType,
            long initialValue, int allocationSize); @Override String getIdentityColumnDefinition(); @Override boolean isTableNotFound(Throwable throwable); @Override boolean isColumnNotFound(Throwable throwable); @Override boolean isSequenceNotFound(Throwable throwable); @Override SqlBlockContext createSqlBlockContext(); @Override boolean supportsIdentityInsert(); @Override boolean supportsIdentity(); @Override String getSequenceNextValString(String sequenceName,
            int allocationSize); @Override boolean supportsCommentInCreateTable(); @Override boolean supportsCommentOn(); }
PostgreGenDialect extends StandardGenDialect { @Override public SqlType getSqlType(ValueTypeProvider valueTypeProvider, PropertyMeta propertyMeta) { if (propertyMeta.isLob()) { if (propertyMeta.getPropertyClass() == String.class) { return getSqlTypeInternal(Types.CLOB); } } ValueType valueType = valueTypeProvider.provide(propertyMeta); return getSqlTypeInternal(valueType.getSqlType()); } PostgreGenDialect(); @Override String getName(); @Override SqlType getSqlType(ValueTypeProvider valueTypeProvider,
            PropertyMeta propertyMeta); @Override String getDefaultSchemaName(String userName); @Override GenerationType getDefaultGenerationType(); @Override boolean supportsSequence(); @Override String getSequenceDefinitionFragment(String dataType,
            long initialValue, int allocationSize); @Override String getIdentityColumnDefinition(); @Override boolean isTableNotFound(Throwable throwable); @Override boolean isColumnNotFound(Throwable throwable); @Override boolean isSequenceNotFound(Throwable throwable); @Override SqlBlockContext createSqlBlockContext(); @Override boolean supportsIdentityInsert(); @Override boolean supportsIdentity(); @Override String getSequenceNextValString(String sequenceName,
            int allocationSize); @Override boolean supportsCommentInCreateTable(); @Override boolean supportsCommentOn();  }