I\'ve got List dynamics. And I want to get max result using Collections. This is my code:
List dynamics
Collections
List dynamics=spy
Your error might be in this line:
List result = query.list();
where query.list() is returning a BigInteger List instead of Long list. Try to change it to.