java - Get all offers for todays date -
Say that I have a unit representing the offer and highlighting the offer a crude replletry. How to get all the proposals for today? Naturally my property unit has a date feature.
Reception in offer. Java:
Public Interface Offer Repository Crude Resorgetry and Late Offer, Long & gt; {LIST & amp; Offer; Offer & gt; Find All Date (Date Date); };
When you want data:
list & lt; Offer & gt; Offer = offer repository.findedbudate (new date ());
Update:
In fact, you can also:
Public Interface Offer Repository Crude Resposatory & lt; Offer, Long & gt; Select {@Query ("Choose from Proposition o, select date between CURRENT_DATE and CURRENT_DATE + 1") & lt; Offer & gt; FindAllByDateToday (); };
Comments
Post a Comment