ernst_pluess wrote:
BTW:
Joins are supported only for associations managed by hibernate. This means you could get your stuff working by adding the association to the mapping. This would be the path hibernate is asking for.
HTH
Ernst
Thks ernst_pluess!
You are right! In the previous, my two tables have not any associations.They associate using a column simply. I add associations to mappings and the query works well. It mean that if I use "join", I need have to make Hibernate to know the association with two tables in mapping.
That is exactly what you said.
Code:
Joins are supported only for associations managed by hibernate.
:)
Thks