@Test
public void testSorter() throws Exception {
Sorter sorter = new Sorter().desc("name").asc("property").desc("createDate");
String hql = "from Entry entry";
String orderedHql = "from Entry entry order by name desc,property asc,createDate desc";
assertEquals(sorter.decorate(hql), orderedHql);
}
@Test
public void testSorterWithExistOrderBy() throws Exception {
Sorter sorter = new Sorter().desc("name").asc("property").desc("createDate");