public ShoppingItemField addShoppingItemField(ShoppingItemField model) throws SystemException {
    ShoppingItemField shoppingItemField = new ShoppingItemFieldImpl();

    shoppingItemField.setNew(true);

    shoppingItemField.setItemFieldId(model.getItemFieldId());
    shoppingItemField.setItemId(model.getItemId());
    shoppingItemField.setName(model.getName());
    shoppingItemField.setValues(model.getValues());
    shoppingItemField.setDescription(model.getDescription());

    return shoppingItemFieldPersistence.update(shoppingItemField);
  }
  protected ShoppingItemField toUnwrappedModel(ShoppingItemField shoppingItemField) {
    if (shoppingItemField instanceof ShoppingItemFieldImpl) {
      return shoppingItemField;
    }

    ShoppingItemFieldImpl shoppingItemFieldImpl = new ShoppingItemFieldImpl();

    shoppingItemFieldImpl.setNew(shoppingItemField.isNew());
    shoppingItemFieldImpl.setPrimaryKey(shoppingItemField.getPrimaryKey());

    shoppingItemFieldImpl.setItemFieldId(shoppingItemField.getItemFieldId());
    shoppingItemFieldImpl.setItemId(shoppingItemField.getItemId());
    shoppingItemFieldImpl.setName(shoppingItemField.getName());
    shoppingItemFieldImpl.setValues(shoppingItemField.getValues());
    shoppingItemFieldImpl.setDescription(shoppingItemField.getDescription());

    return shoppingItemFieldImpl;
  }