Order by Comparator

Whenever we create finder method by default it generates many methods associating with it starts by method name as findBy.....

Sometimes it may requires you to display the results in the ASC/DESC. So we have one method which accepts OrderByComparator as parameter.

Below example explains you how to retrieve the Title in the Ascending order.
OrderByComparator comparator = OrderByComparatorFactoryUtil.create(TestModelImpl.TABLE_NAME, "title", orderByType.equals("asc"))
jsonTestEntryPersistance.findByTitle("name",comparator);

Comments

  1. The air of competition has spread everywhere and it has become really tough to get an admission in a well reputed university or college.

    admission essay writing service

    ReplyDelete
  2. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    best rpa training in bangalore
    rpa training in bangalore
    rpa course in bangalore
    RPA training in bangalore
    rpa training in chennai
    rpa online training

    ReplyDelete


  3. Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.

    AWS Training in Bangalore | Best AWS Amazon Web Services…
    Amazon Web Services Training in Pune India
    AWS Online Training in India | AWS Training | AWS online training
    AWS Training in Bangalore | Aws training in Bangalore with placements

    ReplyDelete
  4. A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
    AWS Training in pune
    AWS Online Training
    AWS Training in Bangalore

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. I must appreciate you for providing such a valuable content for us. This is one amazing piece of article. Helped a lot in increasing my knowledge.aws training in bangalore

    ReplyDelete
  7. Wonderful thanks for sharing an amazing idea. keep it...

    Looking for Software Training in Bangalore , learn from Softgen Infotech Software Courses on online training and classroom training. Join today!

    ReplyDelete
  8. Appreciate to share this piece of information with us developers.

    ai training in indore

    ReplyDelete
  9. Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging.After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts likethis. https://www.3ritechnologies.com/course/tableau-online-training-certification/

    ReplyDelete
  10. I lately got here helped here all through your blog and were dissecting nearby. I figured I would leave my most fundamental remark. I dont see what to articulate except for that I have treasured checking out.. Pc Reviver License Key Generator

    ReplyDelete
  11. Cultivating Simulator most recent variant is accommodates the client many astonishing highlights and extremely simple to use for the every client.Farming Simulator 21

    ReplyDelete
  12. AWS(Amazon Web Services) is the best Cloud Computing platform
    used in various organizations for their business development.
    The main aim of the organization is to grow and make a profit
    through various services using aws cloud computing platform.
    It allows the organization to store all its data in the cloud
    without any physical space. This cloud computing platform allows
    the organization to access data more easily from anywhere using the internet.

    AWS Training in Bangalore
    AWS Online Training
    AWS Training in Chennai

    ReplyDelete

Post a Comment

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate