Simple example: {code} public class SimpleEntityWithAssociation { ... private Set associatedEntities = new HashSet(); ... {code} {code} public class SimpleAssociatedEntity { ... private SimpleEntityWithAssociation owner; ... {code} "select a from SimpleEntityWithAssociation as e LEFT JOIN e.associatedEntities as a WITH e.name=?" ...
|