Hi I am using myEclipse and have reverse generated a DAO class.
One of the methods is:
public List<Submission> findByProperty(String propertyName,
final Object value, final int… rowStartIdxAndCount)
In my case, a Topic contains many Submissions. A topic is the parent of many submissions. One to many relationship. here is how I am getting my submissions:
List<Submission> submissions = submissionService.findByProperty(“topic”, topic, null);
This however gives me the ALL the Submission rows starting from the first record inserted. What if I want the order reversed? So I want to ORDER DESC? Order Descending, and then retrieve the records?? In other words, in my case, the records at the end are the latest most recent records.
Essentially, I can actually reverse this based on my “date” column in my Submission table. Order by date and then make it descending.
Is there any way I can achieve this with the reverse generated logic without using native sql for example???