use of org.hibernate.mapping.PrimaryKey in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newTable.
@Override
public ITable newTable(String name) {
Table target = new Table(name);
target.setPrimaryKey(new PrimaryKey());
return facadeFactory.createTable(target);
}
use of org.hibernate.mapping.PrimaryKey in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newTable.
@Override
public ITable newTable(String name) {
Table target = new Table("jboss tools", name);
target.setPrimaryKey(new PrimaryKey(target));
return facadeFactory.createTable(target);
}
use of org.hibernate.mapping.PrimaryKey in project jbosstools-hibernate by jbosstools.
the class PrimaryKeyFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
primaryKeyTarget = new PrimaryKey();
primaryKeyTarget.setTable(new Table());
primaryKeyFacade = new AbstractPrimaryKeyFacade(FACADE_FACTORY, primaryKeyTarget) {
};
}
use of org.hibernate.mapping.PrimaryKey in project jbosstools-hibernate by jbosstools.
the class TableFacadeTest method testGetPrimaryKey.
@Test
public void testGetPrimaryKey() {
Table table = new Table();
PrimaryKey primaryKey = new PrimaryKey();
ITable tableFacade = FACADE_FACTORY.createTable(table);
assertNull(tableFacade.getPrimaryKey());
table.setPrimaryKey(primaryKey);
IPrimaryKey primaryKeyFacade = tableFacade.getPrimaryKey();
assertSame(primaryKey, ((IFacade) primaryKeyFacade).getTarget());
}
use of org.hibernate.mapping.PrimaryKey in project jbosstools-hibernate by jbosstools.
the class PrimaryKeyFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
primaryKeyTarget = new PrimaryKey(new Table());
primaryKeyFacade = new AbstractPrimaryKeyFacade(FACADE_FACTORY, primaryKeyTarget) {
};
}
Aggregations