cbc.add(Expression.eq(CashBookAccounts.PROPERTY_CASHBOOK + "." + CashBook.PROPERTY_ID,
cashBookId));
final List<?> cbas = cbc.list();
assertTrue(cbas.size() > 0);
for (final Object co : cbas) {
final CashBookAccounts cba = (CashBookAccounts) co;
log.debug(cba.getUpdated() + " " + cba.getCashbook().getName());
OBDal.getInstance().remove(cba);
}
OBDal.getInstance().remove(OBDal.getInstance().get(CashBook.class, cashBookId));
}