Changed CodeGenerator#classPart

Use update and delete instead of save and destroy.