How to create method name using After and Equals in Spring Data JPA?

12,270

You can use LessThan, GreaterThan, LessThanEqual, GreaterThanEqual also with dates.

Hope it helps.

Share:
12,270

Related videos on Youtube

Abu Bakar Siddik
Author by

Abu Bakar Siddik

To pursue a highly rewarding career, Seeking an opportunity to utilize my skills in solution architecture designing, programming, implementation from scratch and diligent attitude with great enthusiasm. Focus to be a proactive contributor in sustaining the organization at my highest level through my sheer dedication.

Updated on September 15, 2022

Comments

  • Abu Bakar Siddik
    Abu Bakar Siddik over 1 year

    I need your help to my problem. I can't create method name following this documentation. I want to query date by this method.

    I want like this query :

        SELECT * FROM app_basic where app_end_date>='2016-11-29';
    

    In following Spring documentation After keyword work fine. But I need After and Equals in method name convention using Spring Data jpa.

    So, how can I create this method ? Please, help me.

    Thanks.

    • ScanQR
      ScanQR over 7 years
      Show us your entity please