Package com.webobjects.eocontrol

Examples of com.webobjects.eocontrol.EOGenericRecord


  public void testRootEntity() {
    EOEditingContext ec = ERXEC.newEditingContext();

    // using vertical inheritance
    EOGenericRecord eo1 = (EOGenericRecord)EOUtilities.createAndInsertInstance(ec, "EmployeeVI");
    assertEquals("Person", ERXEOControlUtilities.rootEntityName(eo1));
    assertEquals(EOModelGroup.defaultGroup().entityNamed("Person"), ERXEOControlUtilities.rootEntity(eo1));

    // using horizontal inheritance
    EOGenericRecord eo2 = (EOGenericRecord)EOUtilities.createAndInsertInstance(ec, "EmployeeHI");
    assertEquals("Person", ERXEOControlUtilities.rootEntityName(eo2));
    assertEquals(EOModelGroup.defaultGroup().entityNamed("Person"), ERXEOControlUtilities.rootEntity(eo2));
  }
View Full Code Here

TOP

Related Classes of com.webobjects.eocontrol.EOGenericRecord

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.