Answer the question
In order to leave comments, you need to log in
Hibernate has relationships, how to select only those records that are in the date range?
Let's say there is a user
He has a document
A simple OneToMany user relationship will return all documents.
And if we say there is a creation date and an end date.
I looked at both @Where and @FilterDef
As a result, it's probably easier to write queries yourself, without any links.
This is all so bad, or you can still somehow cut it off.
Let's say even the usual active field, because links without conditions are just barely needed
Answer the question
In order to leave comments, you need to log in
Good afternoon.
Is this option not right for you?
https://stackoverflow.com/questions/21265134/hql-t...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question