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());
}
Aggregations