Home > Back-end >  What is the difference between DateGreaterThanEqual and DateIsGreaterThanEqual in JPA Repository?
What is the difference between DateGreaterThanEqual and DateIsGreaterThanEqual in JPA Repository?

Time:11-17

I'm trying to get all the Reservations for a user with username that are after the current date or equal the current date

Do I need to use:

List<Reservation> findReservationsByUsernameAndDateGreaterThanEqual(String username, Date date);

OR

List<Reservation> findReservationsByUsernameAndDateIsGreaterThanEqual(String username, Date date);

What is the difference between them?

CodePudding user response:

The difference is literally the Is part. Functionally they are the same.

  • Related