*/
adapter.getPaginator().addCriterion(Comparison.eq("manager", null));
adapter.getPaginator().filter();
/* Setup tasks and contacts DetailControllers. */
JsfDetailController taskController = new JsfDetailController(Task.class);
adapter.getController().addChild("tasks",
taskController);
taskController.setForceUpdate(true);
//taskController.setDao(repos().get("Task"));
adapter.getController().addChild("contacts",
new JsfDetailController(ContactInfo.class));
adapter.getPaginator().addOrderBy(OrderBy.asc("lastName"));
adapter.getPaginator().filter();
/*
* Setup directReports detail crudController. Make sure framework calls
* add/remove methods.
*/
JsfDetailController directReports = new JsfDetailController(
Employee.class);
RelationshipManager relationshipManager = directReports
.getRelationshipManager();
relationshipManager.setChildCollectionProperty("directReports");
relationshipManager.setAddToParentMethodName("addDirectReport");
relationshipManager.setRemoveFromParentMethodName("removeDirectReport");