I have class A and class B.
Now class A has Set of B.
class A{
Set<B> bset //
}
bset.size() can be > 100 or > 500 etc
Now i want to change one filed of all B which corresponds to A
Eg:update B set Bfield = x where id IN (1,2,3);
1)What will be the query in hibernate?
2)1,2,3 are ids of B (B.id).
3)How can i retrive all ids of B that corresponds to A in the format required by the query?
If I understood you correct