python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
CriteriaAPI + subquery creates wrong SQL (invalid identifier)
Not sure what I'm dong wrong so I'm guessing this is a bug. I'm trying to create a simple subquery but Eclipselink produces wrong SQL so the execution fails.
Error message
[EL Warning]: 2022-01-17 17:...
jansohn
Votes: 0
Answers: 0
How to write "JPQL" query with "IN" between SELECTs?
I wrote this JPQL query and expect a result as List<Question>:
@Query("SELECT q FROM Question q WHERE q.id IN (SELECT qc.questions FROM QCard qc WHERE qc.id IN (SELECT ct.qCards FROM CTest ...
G T
Votes: 0
Answers: 3
How can I retrieve all the children of a record in this Hibernate @ManyToOne relation?
I am working on a Spring Boot project using Spring Data JPA and Hibernate mapping. I have the following doubt about how can I implement the following query.
I have an User entity class like this:
@Ent...
AndreaNobili
Votes: 0
Answers: 2