Hi,
How could I add filters to a Join on Hibernate? I have an entity parent with three children, and I would like to filter data by some fields of these children entities. The JOIN it's created on my DAO through
Code:
sessionFactory.getCurrentSession().createCriteria(Cartel.class).add( create(instance) ).list();
I supposed that if I set the fields I want to filter by, Hibernate automatically would build the JOIN filtered by these fields but it returns all results (the select statement built only have 1=1 in the where clause).
Thanks.
Regards.
JB.