try {
// linked TAA are Generic or Specific (for sample in DSP5 document), and with a certain version at a certain moment.
return (Collections.unmodifiableList(entityManager.createQuery(
"SELECT o FROM " + IModel.DATABASE_PRE + "TAA o ORDER BY type(o), o.licenseNumber ASC, o.versionNumber ASC").getResultList()));
} catch (Exception ex) {
throw new CustomException(ex);
}
}