This may seem like a silly title but I’m running into a small problem and I wasn’t sure if there was another way around it.
I currently have the following entities:
Location <—> LocationContent –> Container <—> ContainerContent <— OrderLine
The above entities relationships’ are marked with the arrows. Location can have many LocationContent and a LocationContent has a link to it’s parent Location etc.
My problem is that whenever I need to basically join all these tables (JoinAlias) to restrict my result set I’m unable to because not all of the above entities have bi-directional relationships. In some cases it doesn’t make sense for me to have bidirectional relationships because the user will never access the data that way. It really only seems to make sense when I’m querying data.
dotjoe nailed it down: you DO need those relationships.
Why do you think they are evil? they’re free.
The only query method that allows freeform joins is HQL.