Hi people,
I have a problem with a query:
I have a table called "A" (and the java class) which has inside a Set<B>.
The table "B" (and the associated java class) has an attribute for example a dateBirth.
Now I need to query row from table "A" adding some constraints on A's attributes and also on B's attribute but I don't know if it's possible or how to do it.
Code:
obj = session.createQuery("from Cliente as cl where cl.dataCancellazione is null and kits.dataCancellazione is null ").list();
The Class Cliente contains "private Set<Kit> kits = new HashSet<Kit>(0);"
The Class "Kit" contains an attribute named "dataCancellazione"
Thanks a lot
AlexGiul