Search in sources :

Example 1 with AnyType

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

the class TypeFacadeTest method testIsAnyType.

@Test
public void testIsAnyType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isAnyType());
    AnyType anyType = new AnyType();
    typeFacade = FACADE_FACTORY.createType(anyType);
    Assert.assertTrue(typeFacade.isAnyType());
}
Also used : ClassType(org.hibernate.type.ClassType) AnyType(org.hibernate.type.AnyType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 2 with AnyType

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

the class TypeFacadeTest method testIsAnyType.

@Test
public void testIsAnyType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isAnyType());
    AnyType anyType = new AnyType(null, null);
    typeFacade = FACADE_FACTORY.createType(anyType);
    Assert.assertTrue(typeFacade.isAnyType());
}
Also used : ClassType(org.hibernate.type.ClassType) AnyType(org.hibernate.type.AnyType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 3 with AnyType

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

the class TypeFacadeTest method testIsAnyType.

@Test
public void testIsAnyType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isAnyType());
    AnyType anyType = new AnyType(null, null);
    typeFacade = FACADE_FACTORY.createType(anyType);
    Assert.assertTrue(typeFacade.isAnyType());
}
Also used : ClassType(org.hibernate.type.ClassType) AnyType(org.hibernate.type.AnyType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 4 with AnyType

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

the class TypeFacadeTest method testIsAnyType.

@Test
public void testIsAnyType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isAnyType());
    AnyType anyType = new AnyType(null, null, null);
    typeFacade = FACADE_FACTORY.createType(anyType);
    Assert.assertTrue(typeFacade.isAnyType());
}
Also used : ClassType(org.hibernate.type.ClassType) AnyType(org.hibernate.type.AnyType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Example 5 with AnyType

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

the class TypeFacadeTest method testIsAnyType.

@Test
public void testIsAnyType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = FACADE_FACTORY.createType(classType);
    Assert.assertFalse(typeFacade.isAnyType());
    AnyType anyType = new AnyType(null, null, null);
    typeFacade = FACADE_FACTORY.createType(anyType);
    Assert.assertTrue(typeFacade.isAnyType());
}
Also used : ClassType(org.hibernate.type.ClassType) AnyType(org.hibernate.type.AnyType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.Test)

Aggregations

AnyType (org.hibernate.type.AnyType)11 ClassType (org.hibernate.type.ClassType)8 IType (org.jboss.tools.hibernate.runtime.spi.IType)8 Test (org.junit.Test)8 Type (org.hibernate.type.Type)3 AssociationType (org.hibernate.type.AssociationType)2 CompositeType (org.hibernate.type.CompositeType)2 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 Map (java.util.Map)1 MetadataImplementor (org.hibernate.boot.spi.MetadataImplementor)1 FetchStrategy (org.hibernate.engine.FetchStrategy)1 LoadQueryInfluencers (org.hibernate.engine.spi.LoadQueryInfluencers)1 PropertyPath (org.hibernate.loader.PropertyPath)1 Collection (org.hibernate.mapping.Collection)1 AbstractEntityPersister (org.hibernate.persister.entity.AbstractEntityPersister)1 EntityPersister (org.hibernate.persister.entity.EntityPersister)1 AssociationAttributeDefinition (org.hibernate.persister.walking.spi.AssociationAttributeDefinition)1 AssociationKey (org.hibernate.persister.walking.spi.AssociationKey)1 AttributeDefinition (org.hibernate.persister.walking.spi.AttributeDefinition)1