3376 Upgrade Hibernate
This commit is contained in:
parent
a6d2502ebb
commit
e8e8bf8a68
@ -19,13 +19,13 @@ public class ProjectRepoImpl extends GenericRepo<Project, Long> implements Proje
|
||||
@Override
|
||||
public List<User> findMultipleAuthors(Collection<Project> projects) {
|
||||
TypedQuery<User> query = em().createQuery("""
|
||||
from User u where u in (
|
||||
select participant
|
||||
from User u where u.id in (
|
||||
select participant.id
|
||||
from Project project
|
||||
join project.projectParticipants as participant
|
||||
where project in :projects
|
||||
group by participant
|
||||
having count(participant) > 1)
|
||||
group by participant.id
|
||||
having count(participant.id) > 1)
|
||||
""", User.class);
|
||||
query.setParameter("projects", projects);
|
||||
return query.getResultList();
|
||||
|
2
pom.xml
2
pom.xml
@ -26,7 +26,7 @@
|
||||
|
||||
<!-- See https://hibernate.org/orm/releases/ for which version Hibernate implements -->
|
||||
<jakarta.persistence-api.version>3.1.0</jakarta.persistence-api.version>
|
||||
<hibernate.version>6.1.7.Final</hibernate.version>
|
||||
<hibernate.version>6.5.0.Final</hibernate.version>
|
||||
<mariadb-java-client.version>3.2.0</mariadb-java-client.version>
|
||||
|
||||
<querydsl.version>5.0.0</querydsl.version>
|
||||
|
Loading…
x
Reference in New Issue
Block a user