Search in sources :

Example 36 with IntegerType

use of org.hibernate.type.IntegerType in project jbosstools-hibernate by jbosstools.

the class TypeFacadeTest method testGetPrimitiveClass.

@Test
public void testGetPrimitiveClass() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    assertNull(typeFacade.getPrimitiveClass());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    assertEquals(int.class, typeFacade.getPrimitiveClass());
}
Also used : IntegerType(org.hibernate.type.IntegerType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.jupiter.api.Test)

Aggregations

IntegerType (org.hibernate.type.IntegerType)36 ClassType (org.hibernate.type.ClassType)33 IType (org.jboss.tools.hibernate.runtime.spi.IType)33 Test (org.junit.jupiter.api.Test)30 StringType (org.hibernate.type.StringType)12 Test (org.junit.Test)3 LongType (org.hibernate.type.LongType)2 Type (org.hibernate.type.Type)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Criterion (org.hibernate.criterion.Criterion)1 Column (org.hibernate.mapping.Column)1 OneToMany (org.hibernate.mapping.OneToMany)1 AbstractSingleColumnStandardBasicType (org.hibernate.type.AbstractSingleColumnStandardBasicType)1 CollectionType (org.hibernate.type.CollectionType)1 CustomType (org.hibernate.type.CustomType)1 DoubleType (org.hibernate.type.DoubleType)1 ManyToOneType (org.hibernate.type.ManyToOneType)1 OneToOneType (org.hibernate.type.OneToOneType)1 SetType (org.hibernate.type.SetType)1