Skip to main content

Data operations (CRUD)

This document describes general data operation methods, wich have same names in both Service and Mapper layers.

add

Create new date with non-null property of input object parameter

update

Based on primary key update data with non-null property of input object parameter.

updateOptional

Invoke mapper.updateOptional method to update data with SQL. update SQL configuration is located in Mapper.xml. the method default update no set fields to NULL.

delete

Delete data with non-null property of input object parameter

list

Query data based on input object parameter