Search in sources :

Example 16 with StringType

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

the class TypeFacadeTest method testIsInstanceOfPrimitiveType.

@Test
public void testIsInstanceOfPrimitiveType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
Also used : IntegerType(org.hibernate.type.IntegerType) StringType(org.hibernate.type.StringType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.jupiter.api.Test)

Example 17 with StringType

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

the class TypeFacadeTest method testIsInstanceOfPrimitiveType.

@Test
public void testIsInstanceOfPrimitiveType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
Also used : IntegerType(org.hibernate.type.IntegerType) StringType(org.hibernate.type.StringType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.jupiter.api.Test)

Example 18 with StringType

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

the class TypeFacadeTest method testIsInstanceOfPrimitiveType.

@Test
public void testIsInstanceOfPrimitiveType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
Also used : IntegerType(org.hibernate.type.IntegerType) StringType(org.hibernate.type.StringType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.jupiter.api.Test)

Example 19 with StringType

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

the class TypeFacadeTest method testIsInstanceOfPrimitiveType.

@Test
public void testIsInstanceOfPrimitiveType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
Also used : IntegerType(org.hibernate.type.IntegerType) StringType(org.hibernate.type.StringType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.jupiter.api.Test)

Example 20 with StringType

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

the class TypeFacadeTest method testIsInstanceOfPrimitiveType.

@Test
public void testIsInstanceOfPrimitiveType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
Also used : IntegerType(org.hibernate.type.IntegerType) StringType(org.hibernate.type.StringType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.jupiter.api.Test)

Aggregations

StringType (org.hibernate.type.StringType)20 ClassType (org.hibernate.type.ClassType)11 IntegerType (org.hibernate.type.IntegerType)11 IType (org.jboss.tools.hibernate.runtime.spi.IType)11 Test (org.junit.jupiter.api.Test)10 Type (org.hibernate.type.Type)5 LongType (org.hibernate.type.LongType)4 CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)2 PipelineId (com.thoughtworks.go.server.ui.PipelineId)2 CollectionUtil (com.thoughtworks.go.server.util.CollectionUtil)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 ResultType (org.broadleafcommerce.common.extension.ResultType)2 Test (org.junit.Test)2 ModificationForPipeline (com.thoughtworks.go.server.ui.ModificationForPipeline)1 Serializable (java.io.Serializable)1 Iterator (java.util.Iterator)1 LinkedList (java.util.LinkedList)1 CriteriaBuilder (javax.persistence.criteria.CriteriaBuilder)1 Predicate (javax.persistence.criteria.Predicate)1