public ims.core.vo.VertebrallevelVoCollection listVertebralLevel(Boolean activeOnly) { DomainFactory factory = getDomainFactory(); java.util.List lst; if (activeOnly.equals(Boolean.TRUE)) { lst = factory.find("from VertebralLevels level where level.isActive = :active", new String[]{"active"}, new Object[]{Boolean.TRUE}); return VertebrallevelVoAssembler.createVertebrallevelVoCollectionFromVertebralLevels(lst).sort(); } return VertebrallevelVoAssembler.createVertebrallevelVoCollectionFromVertebralLevels(factory.listDomainObjects(VertebralLevels.class)).sort(); }
public VertebrallevelVoCollection listVertebralLevels() { String hqlString = "from VertebralLevels as v where v.isActive = 1"; return VertebrallevelVoAssembler.createVertebrallevelVoCollectionFromVertebralLevels(getDomainFactory().find(hqlString)).sort(); //wdev-14015 }