Search in sources :

Example 1 with IForeignKey

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

the class FacadeFactoryTest method testCreateForeignKey.

@Test
public void testCreateForeignKey() {
    ForeignKey foreignKey = new ForeignKey();
    IForeignKey facade = facadeFactory.createForeignKey(foreignKey);
    Assert.assertSame(foreignKey, ((IFacade) facade).getTarget());
}
Also used : IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) ForeignKey(org.hibernate.mapping.ForeignKey) Test(org.junit.Test)

Example 2 with IForeignKey

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

the class FacadeFactoryTest method testCreateForeignKey.

@Test
public void testCreateForeignKey() {
    ForeignKey foreignKey = new ForeignKey();
    IForeignKey facade = facadeFactory.createForeignKey(foreignKey);
    Assert.assertSame(foreignKey, ((IFacade) facade).getTarget());
}
Also used : IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) ForeignKey(org.hibernate.mapping.ForeignKey) IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) Test(org.junit.Test)

Example 3 with IForeignKey

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

the class FacadeFactoryTest method testCreateForeignKey.

@Test
public void testCreateForeignKey() {
    ForeignKey foreignKey = new ForeignKey();
    IForeignKey facade = facadeFactory.createForeignKey(foreignKey);
    Assert.assertSame(foreignKey, ((IFacade) facade).getTarget());
}
Also used : IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) ForeignKey(org.hibernate.mapping.ForeignKey) Test(org.junit.Test)

Example 4 with IForeignKey

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

the class FacadeFactoryTest method testCreateForeignKey.

@Test
public void testCreateForeignKey() {
    ForeignKey foreignKey = new ForeignKey();
    IForeignKey facade = facadeFactory.createForeignKey(foreignKey);
    Assert.assertSame(foreignKey, ((IFacade) facade).getTarget());
}
Also used : IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) ForeignKey(org.hibernate.mapping.ForeignKey) IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) Test(org.junit.Test)

Example 5 with IForeignKey

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

the class FacadeFactoryTest method testCreateForeignKey.

@Test
public void testCreateForeignKey() {
    ForeignKey foreignKey = new ForeignKey();
    IForeignKey facade = facadeFactory.createForeignKey(foreignKey);
    Assert.assertSame(foreignKey, ((IFacade) facade).getTarget());
}
Also used : IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) ForeignKey(org.hibernate.mapping.ForeignKey) IForeignKey(org.jboss.tools.hibernate.runtime.spi.IForeignKey) Test(org.junit.Test)

Aggregations

IForeignKey (org.jboss.tools.hibernate.runtime.spi.IForeignKey)9 ForeignKey (org.hibernate.mapping.ForeignKey)8 Test (org.junit.Test)8 HashMap (java.util.HashMap)1 IColumn (org.jboss.tools.hibernate.runtime.spi.IColumn)1 ITable (org.jboss.tools.hibernate.runtime.spi.ITable)1