sourceMap.addObjEntity(objEntity);
for (int i = 0; i < 5; i++) {
CayenneDataObject dao = (CayenneDataObject) ctxt.newObject(objEntity
.getName());
dao.writeProperty(oatr1.getName(), "test " + i);
}
ctxt.commitChanges();
}
finally {
sourceMap.removeObjEntity(objEntity.getName(), true);