Hi, I want to retrieve Text objects from my DB using an HQL join query.
This query returns Text objects
Code:
from Text text
join fetch text.role
where text.language = "ENGLISH"
This query returns Object objects.
Code:
from Text text
join text.role
where text.language = "ENGLISH"
Do you know why? This query is simpler than the one I really need. I was just wondering why adding "fetch" to the query results in Text objects. I need Text objects in the end, but I don't want to use fetch, because I don't need the "role".