@Test void createWithClassAndId() { Id id = Id.getProvider().fromLong(17L); PersistentEObject object = PersistenceFactory.newInstance(eClass, id); assertThat(object.eClass()).isEqualTo(eClass); assertThat(object.id()).isEqualTo(id); }
@Nonnull public static PersistentEObject newInstance(EClass eClass) { return newInstance(eClass, Id.UNDEFINED); }
PersistenceFactory extends EFactoryImpl implements EFactory { @Nonnull public static PersistentEObject newInstance(EClass eClass) { return newInstance(eClass, Id.UNDEFINED); } }
PersistenceFactory extends EFactoryImpl implements EFactory { @Nonnull public static PersistentEObject newInstance(EClass eClass) { return newInstance(eClass, Id.UNDEFINED); } PersistenceFactory();  PersistenceFactory(EPackage ePackage); }
PersistenceFactory extends EFactoryImpl implements EFactory { @Nonnull public static PersistentEObject newInstance(EClass eClass) { return newInstance(eClass, Id.UNDEFINED); } PersistenceFactory();  PersistenceFactory(EPackage ePackage); @Nonnull static PersistentEObject newInstance(EClass eClass); @Nonnull static PersistentEObject newInstance(EClass eClass, Id id); static boolean updateIfDynamic(EPackage ePackage); }
PersistenceFactory extends EFactoryImpl implements EFactory { @Nonnull public static PersistentEObject newInstance(EClass eClass) { return newInstance(eClass, Id.UNDEFINED); } PersistenceFactory();  PersistenceFactory(EPackage ePackage); @Nonnull static PersistentEObject newInstance(EClass eClass); @Nonnull static PersistentEObject newInstance(EClass eClass, Id id); static boolean updateIfDynamic(EPackage ePackage);  }