Search in sources :

Example 6 with BagType

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

the class TypeFacadeTest method testIsArrayType.

@Test
public void testIsArrayType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isArrayType());
    BagType bagType = new BagType(null, null, null);
    typeFacade = FACADE_FACTORY.createType(bagType);
    Assert.assertFalse(typeFacade.isArrayType());
    ArrayType arrayType = new ArrayType(null, null, null, String.class);
    typeFacade = FACADE_FACTORY.createType(arrayType);
    Assert.assertTrue(typeFacade.isArrayType());
}
Also used : ArrayType(org.hibernate.type.ArrayType) BagType(org.hibernate.type.BagType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 7 with BagType

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

the class TypeFacadeTest method testIsArrayType.

@Test
public void testIsArrayType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isArrayType());
    BagType bagType = new BagType(null, null, null);
    typeFacade = FACADE_FACTORY.createType(bagType);
    Assert.assertFalse(typeFacade.isArrayType());
    ArrayType arrayType = new ArrayType(null, null, null, String.class);
    typeFacade = FACADE_FACTORY.createType(arrayType);
    Assert.assertTrue(typeFacade.isArrayType());
}
Also used : ArrayType(org.hibernate.type.ArrayType) BagType(org.hibernate.type.BagType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 8 with BagType

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

the class TypeFacadeTest method testIsArrayType.

@Test
public void testIsArrayType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isArrayType());
    BagType bagType = new BagType(null, null, null, false);
    typeFacade = FACADE_FACTORY.createType(bagType);
    Assert.assertFalse(typeFacade.isArrayType());
    ArrayType arrayType = new ArrayType(null, null, null, String.class, false);
    typeFacade = FACADE_FACTORY.createType(arrayType);
    Assert.assertTrue(typeFacade.isArrayType());
}
Also used : ArrayType(org.hibernate.type.ArrayType) BagType(org.hibernate.type.BagType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 9 with BagType

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

the class TypeFacadeTest method testIsArrayType.

@Test
public void testIsArrayType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isArrayType());
    BagType bagType = new BagType(null, null, null);
    typeFacade = FACADE_FACTORY.createType(bagType);
    Assert.assertFalse(typeFacade.isArrayType());
    ArrayType arrayType = new ArrayType(null, null, null, String.class);
    typeFacade = FACADE_FACTORY.createType(arrayType);
    Assert.assertTrue(typeFacade.isArrayType());
}
Also used : ArrayType(org.hibernate.type.ArrayType) BagType(org.hibernate.type.BagType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 10 with BagType

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

the class TypeFacadeTest method testIsArrayType.

@Test
public void testIsArrayType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isArrayType());
    BagType bagType = new BagType(null, null, null);
    typeFacade = FACADE_FACTORY.createType(bagType);
    Assert.assertFalse(typeFacade.isArrayType());
    ArrayType arrayType = new ArrayType(null, null, null, String.class);
    typeFacade = FACADE_FACTORY.createType(arrayType);
    Assert.assertTrue(typeFacade.isArrayType());
}
Also used : ArrayType(org.hibernate.type.ArrayType) BagType(org.hibernate.type.BagType) ClassType(org.hibernate.type.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Aggregations

BagType (org.hibernate.type.BagType)10 ArrayType (org.hibernate.type.ArrayType)8 ClassType (org.hibernate.type.ClassType)8 IType (org.jboss.tools.hibernate.runtime.spi.IType)8 Test (org.junit.Test)8 ComponentType (org.hibernate.type.ComponentType)2 ListType (org.hibernate.type.ListType)2 ManyToOneType (org.hibernate.type.ManyToOneType)2 MapType (org.hibernate.type.MapType)2 MaterializedClobType (org.hibernate.type.MaterializedClobType)2 MaterializedNClobType (org.hibernate.type.MaterializedNClobType)2 SetType (org.hibernate.type.SetType)2 SortedMapType (org.hibernate.type.SortedMapType)2 SortedSetType (org.hibernate.type.SortedSetType)2 Type (org.hibernate.type.Type)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 TreeMap (java.util.TreeMap)1 TreeSet (java.util.TreeSet)1 BasicCollectionMapper (org.hibernate.envers.internal.entities.mapper.relation.BasicCollectionMapper)1