Search in sources :

Example 6 with POJOClass

use of org.hibernate.tool.hbm2x.pojo.POJOClass in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreatePOJOClass.

@Test
public void testCreatePOJOClass() {
    POJOClass pojoClass = (POJOClass) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { POJOClass.class }, new TestInvocationHandler());
    IPOJOClass facade = facadeFactory.createPOJOClass(pojoClass);
    Assert.assertSame(pojoClass, ((IFacade) facade).getTarget());
}
Also used : IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) POJOClass(org.hibernate.tool.hbm2x.pojo.POJOClass) IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) PersistentClass(org.hibernate.mapping.PersistentClass) RootClass(org.hibernate.mapping.RootClass) IPersistentClass(org.jboss.tools.hibernate.runtime.spi.IPersistentClass) POJOClass(org.hibernate.tool.hbm2x.pojo.POJOClass) IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) Test(org.junit.Test)

Example 7 with POJOClass

use of org.hibernate.tool.hbm2x.pojo.POJOClass in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreatePOJOClass.

@Test
public void testCreatePOJOClass() {
    POJOClass pojoClass = (POJOClass) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { POJOClass.class }, new TestInvocationHandler());
    IPOJOClass facade = facadeFactory.createPOJOClass(pojoClass);
    Assert.assertSame(pojoClass, ((IFacade) facade).getTarget());
}
Also used : IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) POJOClass(org.hibernate.tool.hbm2x.pojo.POJOClass) PersistentClass(org.hibernate.mapping.PersistentClass) IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) RootClass(org.hibernate.mapping.RootClass) IPersistentClass(org.jboss.tools.hibernate.runtime.spi.IPersistentClass) POJOClass(org.hibernate.tool.hbm2x.pojo.POJOClass) Test(org.junit.Test)

Example 8 with POJOClass

use of org.hibernate.tool.hbm2x.pojo.POJOClass in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreatePOJOClass.

@Test
public void testCreatePOJOClass() {
    POJOClass pojoClass = (POJOClass) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { POJOClass.class }, new TestInvocationHandler());
    IPOJOClass facade = facadeFactory.createPOJOClass(pojoClass);
    Assert.assertSame(pojoClass, ((IFacade) facade).getTarget());
}
Also used : IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) POJOClass(org.hibernate.tool.hbm2x.pojo.POJOClass) PersistentClass(org.hibernate.mapping.PersistentClass) IPOJOClass(org.jboss.tools.hibernate.runtime.spi.IPOJOClass) RootClass(org.hibernate.mapping.RootClass) IPersistentClass(org.jboss.tools.hibernate.runtime.spi.IPersistentClass) POJOClass(org.hibernate.tool.hbm2x.pojo.POJOClass) Test(org.junit.Test)

Aggregations

PersistentClass (org.hibernate.mapping.PersistentClass)8 RootClass (org.hibernate.mapping.RootClass)8 POJOClass (org.hibernate.tool.hbm2x.pojo.POJOClass)8 IPOJOClass (org.jboss.tools.hibernate.runtime.spi.IPOJOClass)8 IPersistentClass (org.jboss.tools.hibernate.runtime.spi.IPersistentClass)8 Test (org.junit.Test)8