@Test public void getEntityTypeReturnsPersonClass() { EntityReference result = this.manager.getEntityType(); Assert.assertEquals("PersonClass", result.getName()); Assert.assertEquals("PhenoTips", result.getParent().getName()); Assert.assertNull(result.getParent().getParent()); }
@Override public EntityReference getEntityType() { DocumentReference fullReference = getEntityXClassReference(); return fullReference.removeParent(fullReference.getRoot()); }
AbstractPrimaryEntityManager implements PrimaryEntityManager<E> { @Override public EntityReference getEntityType() { DocumentReference fullReference = getEntityXClassReference(); return fullReference.removeParent(fullReference.getRoot()); } }
AbstractPrimaryEntityManager implements PrimaryEntityManager<E> { @Override public EntityReference getEntityType() { DocumentReference fullReference = getEntityXClassReference(); return fullReference.removeParent(fullReference.getRoot()); }  }
AbstractPrimaryEntityManager implements PrimaryEntityManager<E> { @Override public EntityReference getEntityType() { DocumentReference fullReference = getEntityXClassReference(); return fullReference.removeParent(fullReference.getRoot()); }  @Override E create(); @Override synchronized E create(DocumentReference creator); @Override E get(String id); @Override E get(DocumentReference reference); @Override E getByName(String name); @Override Iterator<E> getAll(); @Override boolean delete(E entity); @Override E load(DocumentModelBridge document); @Override String getIdPrefix(); @Override EntityReference getEntityType(); }
AbstractPrimaryEntityManager implements PrimaryEntityManager<E> { @Override public EntityReference getEntityType() { DocumentReference fullReference = getEntityXClassReference(); return fullReference.removeParent(fullReference.getRoot()); }  @Override E create(); @Override synchronized E create(DocumentReference creator); @Override E get(String id); @Override E get(DocumentReference reference); @Override E getByName(String name); @Override Iterator<E> getAll(); @Override boolean delete(E entity); @Override E load(DocumentModelBridge document); @Override String getIdPrefix(); @Override EntityReference getEntityType();  }