Search in sources :

Example 96 with IType

use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.

the class TypeFactoryFacadeTest method testGetTextType.

@Test
public void testGetTextType() {
    Type typeTarget = StandardBasicTypes.TEXT;
    IType typeFacade = typeFactoryFacade.getTextType();
    Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
Also used : IType(org.jboss.tools.hibernate.runtime.spi.IType) Type(org.hibernate.type.Type) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 97 with IType

use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.

the class TypeFactoryFacadeTest method testGetTimestampType.

@Test
public void testGetTimestampType() {
    Type typeTarget = StandardBasicTypes.TIMESTAMP;
    IType typeFacade = typeFactoryFacade.getTimestampType();
    Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
Also used : IType(org.jboss.tools.hibernate.runtime.spi.IType) Type(org.hibernate.type.Type) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 98 with IType

use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.

the class TypeFactoryFacadeTest method testGetFloatType.

@Test
public void testGetFloatType() {
    Type typeTarget = StandardBasicTypes.FLOAT;
    IType typeFacade = typeFactoryFacade.getFloatType();
    Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
Also used : IType(org.jboss.tools.hibernate.runtime.spi.IType) Type(org.hibernate.type.Type) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 99 with IType

use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.

the class TypeFactoryFacadeTest method testGetTrueFalseType.

@Test
public void testGetTrueFalseType() {
    Type typeTarget = StandardBasicTypes.TRUE_FALSE;
    IType typeFacade = typeFactoryFacade.getTrueFalseType();
    Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
Also used : IType(org.jboss.tools.hibernate.runtime.spi.IType) Type(org.hibernate.type.Type) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 100 with IType

use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.

the class ValueFacadeTest method testGetType.

@Test
public void testGetType() {
    SimpleValue valueTarget = new SimpleValue(new Configuration().createMappings());
    valueTarget.setTypeName("java.lang.Integer");
    valueFacade = FACADE_FACTORY.createValue(valueTarget);
    IType typeFacade = valueFacade.getType();
    Assert.assertEquals("org.hibernate.type.IntegerType", ((IFacade) typeFacade).getTarget().getClass().getName());
}
Also used : Configuration(org.hibernate.cfg.Configuration) SimpleValue(org.hibernate.mapping.SimpleValue) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Aggregations

IType (org.jboss.tools.hibernate.runtime.spi.IType)372 Test (org.junit.Test)360 Type (org.hibernate.type.Type)208 ClassType (org.hibernate.type.ClassType)120 ArrayType (org.hibernate.type.ArrayType)56 EntityType (org.hibernate.type.EntityType)24 IntegerType (org.hibernate.type.IntegerType)24 ManyToOneType (org.hibernate.type.ManyToOneType)24 RootClass (org.hibernate.mapping.RootClass)16 IPersistentClass (org.jboss.tools.hibernate.runtime.spi.IPersistentClass)12 Component (org.hibernate.mapping.Component)8 PersistentClass (org.hibernate.mapping.PersistentClass)8 SimpleValue (org.hibernate.mapping.SimpleValue)8 POJOClass (org.hibernate.tool.hbm2x.pojo.POJOClass)8 ComponentMetamodel (org.hibernate.tuple.component.ComponentMetamodel)8 AnyType (org.hibernate.type.AnyType)8 BagType (org.hibernate.type.BagType)8 ComponentType (org.hibernate.type.ComponentType)8 OneToOneType (org.hibernate.type.OneToOneType)8 StringType (org.hibernate.type.StringType)8