How will you use the following JPA query language?
select * from person where email in (select email from person group by email having count(email)>1)
Finally found a solution:
select p from Person p where p.email in ( select q.email from Person q group by q.email having count(q.email)>1) order by p.email, p.id
From this link , there is an explanation of the general structure of the SELECT SELECT query:
SELECT ... FROM ... [WHERE ...] [GROUP BY ... [HAVING ...]] [ORDER BY ...]
Source: https://habr.com/ru/post/1758721/More articles:Groovy remove tag in XMLSlurper, replaceNode {} does nothing - xmlThe public action method pagerror.gif / refresh.gif cannot be detected on the controller - who calls this gif? - asp.net-mvcКак обновить существующий корпоративный проект от Java EE5 до Java EE 6 в Netbeans (6.9) - javaassign variables to the apply () - d function using << - - rConvert NSString to NSnumber correctly - objective-cwhich is the best mapping for European + English - sql-server-2005Setting the path to the source library - javaNamed pipes - problem with write () and read () - c ++How to work with NSTimer - iphonehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1758726/how-do-i-configure-google-analytics-to-seperate-devtest-and-production-sites&usg=ALkJrhiu9uKG34JnEt2KRIUZMP89ErGgoAAll Articles