It is not my intention to hijack MikeC's question but I would like a 2nd consecutive thread here since it might prove useful to MikeC later on once he gets his mapping files sorted out.
I'm doing the same thing as MikeC. My mapping is fine. The issue now is that some HQLs are not executing properly when joins are needed.
e.g.
Code:
1) select u.email from User u ---> executes fine.
2) from User --> Throws error: Too many tables. MySQL can only use 31 tables in
a join
3) from Role --> same error as in 2
4) select r.roleName from Role r --> executes fine.
I'm using non-lazy associations in ALL my relationships. Do you think this is causing my problem ?
Regards,
alistair