I have found a solution.
Apparently the hibernate version I'm using (hibernate 3) does not allow aliases to be assigned to related objects . When I delete these aliases, the request works.
Here is the correct code:
select tc.id, tc.terminalServerPort.id,
tc.terminalServerPort.terminalServer.name,
tc.terminalServerPort.terminalServer.IPConfig.IPAddress,
tc.terminalServerPort.portNumber
from TargetConsole tc where tc.target.id = :targetId order by id asc
Thanks for helping the guys!
source
share