Revert "xtea service: fix get() query to join on id"

This reverts commit e7a1c59cdb10e6e5ab403f4c4557eeb5f1a62200.
This commit is contained in:
Adam
2018-02-22 23:26:31 -05:00
parent 65f3bae155
commit a5c326e220

View File

@@ -161,8 +161,8 @@ public class XteaService
{
List<XteaEntry> entries = con.createQuery(
"select t1.region, t1.time, t1.rev, t1.key1, t1.key2, t1.key3, t1.key4 from xtea t1 "
+ "inner join ( select id,region,max(time) as time from xtea group by region ) t2 "
+ "on t1.id = t2.id")
+ "inner join ( select region,max(time) as time from xtea group by region ) t2 "
+ "on t1.region = t2.region and t1.time = t2.time")
.executeAndFetch(XteaEntry.class);
return entries.stream()