Search in sources :

Example 1 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);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    Assert.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.Test)

Example 2 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);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    Assert.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.Test)

Example 3 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);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    Assert.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.Test)

Example 4 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);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    Assert.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.Test)

Example 5 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);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = FACADE_FACTORY.createType(stringType);
    Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = FACADE_FACTORY.createType(integerType);
    Assert.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.Test)

Aggregations

StringType (org.hibernate.type.StringType)17 Test (org.junit.Test)9 ClassType (org.hibernate.type.ClassType)8 IntegerType (org.hibernate.type.IntegerType)8 IType (org.jboss.tools.hibernate.runtime.spi.IType)8 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 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 ExtensionResultStatusType (org.broadleafcommerce.common.extension.ExtensionResultStatusType)1