Commit 8c208338 authored by oleg.pahhomov's avatar oleg.pahhomov

SA0140-537 | add order for my widgets

parent 0cc877fd
......@@ -58,7 +58,8 @@ public class WidgetCustomRepositoryImpl implements WidgetCustomRepository {
return entityManager.createNativeQuery("" +
"SELECT w.* from widget w\n" +
"join dashboard_widget dw on w.id = dw.widget\n" +
"where dw.dashboard = :dashboard", Widget.class)
"where dw.dashboard = :dashboard \n" +
"order by dw.id desc", Widget.class)
.setParameter("dashboard", dashboard)
.getResultList();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment