I was wondering if there is a way to use @Where(clause="")a set of things to bind to where is_active=1 AND expires_date <= new Date()in relation @OneToMany.
Something like that
@Where(clause="is_active=1 AND expires_date <=" + new Date())
Or can you only do this with constants?
This code will not work only for job search or if there is a way to do it. Thanks in advance.
source
share