2012/12/19 Michael Gentry <mgen...@masslight.net>

> One of the dangers of having delete/save/update

Update method do not needed, delete method is useful - because it remove
entity from context.
And instead of save method - we may create methods - seems like
commitContext, rollbackContext.

Also we may create it in "Role" for example, or we may create static class
for example "Cayenne" or move its to "AnythingMap".

Role curRole = Role.newInstance();
curRole.setFirstName("Ilya");

SecurityMap.commitContext();

What do you think?



-- 
С уважением, Илья Дробеня.

Reply via email to