Search in sources :

Example 1 with IntegerTypeDescriptor

use of org.hibernate.type.descriptor.sql.IntegerTypeDescriptor in project hibernate-orm by hibernate.

the class TypeOverrideTest method testNonStandardSqlTypeDescriptor.

@Test
public void testNonStandardSqlTypeDescriptor() {
    // no override
    SqlTypeDescriptor sqlTypeDescriptor = new IntegerTypeDescriptor() {

        @Override
        public boolean canBeRemapped() {
            return false;
        }
    };
    assertSame(sqlTypeDescriptor, remapSqlTypeDescriptor(sqlTypeDescriptor));
}
Also used : SqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor) IntegerTypeDescriptor(org.hibernate.type.descriptor.sql.IntegerTypeDescriptor) Test(org.junit.Test)

Aggregations

IntegerTypeDescriptor (org.hibernate.type.descriptor.sql.IntegerTypeDescriptor)1 SqlTypeDescriptor (org.hibernate.type.descriptor.sql.SqlTypeDescriptor)1 Test (org.junit.Test)1