I
I
IvanN7772021-06-01 21:53:21
Hibernate
IvanN777, 2021-06-01 21:53:21

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

1 answer(s)
O
Orkhan Hasanli, 2021-06-07
@azerphoenix

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 question

Ask a Question

731 491 924 answers to any question