V
V
Valera Programmer2016-10-13 13:06:49
Java
Valera Programmer, 2016-10-13 13:06:49

How to get first element from collection in criteria alias?

I need to get the first entry from the sheet where the number is 1.
and assign the name of the entry where the number is 2.
It turns out that instead of two entries from the database it gets five, how can I get the first entry from the list where the number 1 is?
ps connection where the number 1 is one to many.
caef97a8034742e8834e6eff1d626977.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question