3536373839404142
query.from(qArtifactVersion) .where(qArtifactVersion.artifact.deprecationStatus.eq(ArtifactDeprecationStatus.NORMAL)) .orderBy(qArtifactVersion.lastUpdateDate.desc()) .limit(limit); return query.list(qArtifactVersion); } }
2627282930313233
query.from(qArtifactVersionNotification) .where(qArtifactVersionNotification.artifactVersion.artifact.eq(artifact)) .orderBy(qArtifactVersionNotification.creationDate.desc()); return query.list(qArtifactVersionNotification); } }
2223242526272829
JPAQuery query = new JPAQuery(getEntityManager()); query.from(qUser) .where(qUser.followedArtifacts.any().artifact.eq(artifact)); return query.list(qUser); } }