And if so, what is the syntax?
Assume that I want an instance of Foo to be unassociated from all instances of Bar: In SQL it would simply be:
delete
Removing associations alone is not possible with HQL. What you can do, however, is either:
A) Assuming you're doing it for a single Foo and your cascade is set appropriately, you can load that Foo
instance, clear its collection of bars
and save it.
B) If you're trying to clear bars
from multiple Foos
you can map an SQL query instead of HQL