generator.setParameter(LibraryApendPathConstants.DEPLOYMENT_ID, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
LibraryApendPath prepandPath = (LibraryApendPath) result;
LibraryApendPathResource resource =
(LibraryApendPathResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.LIBRARY_APEND_PATH, prepandPath);
libApPathList.add(resource);
}
}
} else if (fieldName.equals(LibraryApendPathConstants.NAME)) {
generator.setParameter(LibraryApendPathConstants.NAME, value);
q = generator.selectQuery(em);
results = q.getResultList();
if (results.size() != 0) {
for (Object result : results) {
LibraryApendPath prepandPath = (LibraryApendPath) result;
LibraryApendPathResource resource =
(LibraryApendPathResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.LIBRARY_APEND_PATH, prepandPath);
libApPathList.add(resource);
}
}