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
|
@Override
|
||||||
public List<User> findMultipleAuthors(Collection<Project> projects) {
|
public List<User> findMultipleAuthors(Collection<Project> projects) {
|
||||||
TypedQuery<User> query = em().createQuery("""
|
TypedQuery<User> query = em().createQuery("""
|
||||||
from User u where u in (
|
from User u where u.id in (
|
||||||
select participant
|
select participant.id
|
||||||
from Project project
|
from Project project
|
||||||
join project.projectParticipants as participant
|
join project.projectParticipants as participant
|
||||||
where project in :projects
|
where project in :projects
|
||||||
group by participant
|
group by participant.id
|
||||||
having count(participant) > 1)
|
having count(participant.id) > 1)
|
||||||
""", User.class);
|
""", User.class);
|
||||||
query.setParameter("projects", projects);
|
query.setParameter("projects", projects);
|
||||||
return query.getResultList();
|
return query.getResultList();
|
||||||
|
2
pom.xml
2
pom.xml
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<!-- See https://hibernate.org/orm/releases/ for which version Hibernate implements -->
|
<!-- See https://hibernate.org/orm/releases/ for which version Hibernate implements -->
|
||||||
<jakarta.persistence-api.version>3.1.0</jakarta.persistence-api.version>
|
<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>
|
<mariadb-java-client.version>3.2.0</mariadb-java-client.version>
|
||||||
|
|
||||||
<querydsl.version>5.0.0</querydsl.version>
|
<querydsl.version>5.0.0</querydsl.version>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user