Solution:
When this is in the Join clause in the Criteria API, it is only possible to select your entity’s primary key, making the other properties inaccessible.
Hello, I’m trying to make an ordination in Criteria for the following query: SELECT * FROM Social social LEFT JOIN socialfavorite favorite ON (social.id = favorite.favoritedSocial_id AND…