@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) public void _mergePackageSyncReportUpdateRepo(int contentSourceId) { // this method should be called only after a merge of a content source // added/updated/removed one or more packages. When this happens, we need to change // the last modified time for all repos that get content from the changed content source long now = System.currentTimeMillis(); ContentSource contentSource = entityManager.find(ContentSource.class, contentSourceId); Set<RepoContentSource> ccss = contentSource.getRepoContentSources(); for (RepoContentSource ccs : ccss) { ccs.getRepoContentSourcePK().getRepo().setLastModifiedDate(now); } return; }