Hi all,
Use case:
Code:
interface Parent {
CollectionManager getChildManager();
}
interface CollectionManager {
Set getAll();
Set find(String hqlWhereCondition);
}
interface Children {
Parent getParent()
}
and here is the table:
Code:
parent (
id
name
)
child (
id
idparent
name
)
In fact only Parent and Children are persistent classes and ChildManager is simply a collection manager that allow me to sort and filter or to apply Transformers or any other utility to the objects before to use them.
I need the ChildManager because children can be very much and I cannot implement every search method: so I would like to use "HQL" where as a parameter for ChildManager.Find()
Is there a clean way to do that? Any hint?