Package org.hibernate.tool.hbm2x

Examples of org.hibernate.tool.hbm2x.Cfg2HbmTool$HasEntityPersisterVisitor


*
*/
public class Cfg2HbmToolTest extends TestCase {
 
  public void testNeedsTable(){
    Cfg2HbmTool c2h = new Cfg2HbmTool();
    PersistentClass pc = new RootClass();
    assertTrue(c2h.needsTable(pc));
    assertTrue(c2h.needsTable(new JoinedSubclass(pc)));
    assertTrue(c2h.needsTable(new UnionSubclass(pc)));
    assertFalse(c2h.needsTable(new SingleTableSubclass(pc)));
    assertFalse(c2h.needsTable(new Subclass(pc)));
       
  }
View Full Code Here

TOP

Related Classes of org.hibernate.tool.hbm2x.Cfg2HbmTool$HasEntityPersisterVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.