query specified join fetching, but the owner of the fetched association was not present in the select list

Use regular join instead of join fetch (by the way, it’s inner by default):

String hql = " select ec.id as entityChangeId, r.id as revisionId from EntityChange as ec " + 
        " join ec.revision as r " + ...

As error message tells you, join fetch doesn’t make sense here, because it’s a performance hint that forces eager loading of collection.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)