Reputation: 1868
I need a Spring Data JPA (Postgresql) query that searches for a List
of java.util.Date
values. My first attempt at the query was this:
List<PricingCoreViewEntity> findByProductIdAndEffectiveDateIn(
String productId, @Temporal(TemporalType.DATE) List<Date> effectiveDates, Sort orderBy);
But that doesn't work because List
is not temporal, it's the dates within the List
that are. So how else can I write this? TIA.
Upvotes: 0
Views: 328