Search in sources :

Example 6 with Cfg2HbmTool

use of org.hibernate.tool.internal.export.hbm.Cfg2HbmTool in project jbosstools-hibernate by jbosstools.

the class ServiceImplTest method testNewCfg2HbmTool.

@Test
public void testNewCfg2HbmTool() {
    ICfg2HbmTool cfg2HbmTool = service.newCfg2HbmTool();
    assertNotNull(cfg2HbmTool);
    Object target = ((IFacade) cfg2HbmTool).getTarget();
    assertNotNull(target);
    assertTrue(target instanceof Cfg2HbmTool);
}
Also used : ICfg2HbmTool(org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool) Cfg2HbmTool(org.hibernate.tool.internal.export.hbm.Cfg2HbmTool) ICfg2HbmTool(org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool) IFacade(org.jboss.tools.hibernate.runtime.common.IFacade) Test(org.junit.jupiter.api.Test)

Aggregations

Cfg2HbmTool (org.hibernate.tool.internal.export.hbm.Cfg2HbmTool)6 Test (org.junit.jupiter.api.Test)5 File (java.io.File)3 Date (java.util.Date)3 HashMap (java.util.HashMap)3 ICfg2HbmTool (org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool)3 ArtifactCollector (org.hibernate.tool.api.export.ArtifactCollector)2 DefaultArtifactCollector (org.hibernate.tool.internal.export.common.DefaultArtifactCollector)2 EntityPOJOClass (org.hibernate.tool.internal.export.java.EntityPOJOClass)2 IPOJOClass (org.jboss.tools.hibernate.runtime.spi.IPOJOClass)2 Field (java.lang.reflect.Field)1 Method (java.lang.reflect.Method)1 Map (java.util.Map)1 RootClass (org.hibernate.mapping.RootClass)1 Table (org.hibernate.mapping.Table)1 TemplateHelper (org.hibernate.tool.internal.export.common.TemplateHelper)1 Cfg2JavaTool (org.hibernate.tool.internal.export.java.Cfg2JavaTool)1 POJOClass (org.hibernate.tool.internal.export.java.POJOClass)1 AbstractCfg2HbmToolFacade (org.jboss.tools.hibernate.runtime.common.AbstractCfg2HbmToolFacade)1 IFacade (org.jboss.tools.hibernate.runtime.common.IFacade)1