public void test(Long entityAOID) throws Exception {
try {
EntityALocal entityA = getEntityALocalHome().findByPrimaryKey
(entityAOID);
Iterator entityBs = entityA.listEntityBs().iterator();
while (entityBs.hasNext()) {
((EntityBLocal) entityBs.next()).setLastModified(new Date());
}
} catch (Exception e) {
sessionContext.setRollbackOnly();