package org.smartframework.mybatis.mapper.common.update;

import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.UpdateProvider;
import org.smartframework.mybatis.mapper.provider.base.BaseUpdateProvider;

/**
 * Created by chenweijiang on 2017/9/19.
 */
public interface UpdatePropertiesByPrimaryKeyMapper <T> {

    @UpdateProvider(type = BaseUpdateProvider.class, method = "dynamicSQL")
    @Options(useCache = false, useGeneratedKeys = false)
    int updatePropertiesByPrimaryKey(T record,String[] properties);

}
