use of org.hibernate.mapping.SingleTableSubclass in project jbosstools-hibernate by jbosstools.
the class PersistentClassFacadeTest method testIsRootClass.
@Test
public void testIsRootClass() {
persistentClassTarget = new SingleTableSubclass(new RootClass());
persistentClassFacade = new PersistentClassFacadeImpl(FACADE_FACTORY, persistentClassTarget);
assertFalse(persistentClassFacade.isRootClass());
persistentClassTarget = new RootClass();
persistentClassFacade = new PersistentClassFacadeImpl(FACADE_FACTORY, persistentClassTarget);
assertTrue(persistentClassFacade.isRootClass());
}
Aggregations