All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gitee.summer9102.develop.mysql.config.select.SelectByPrimaryKeyForUpdateMapper Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.gitee.summer9102.develop.mysql.config.select;

import com.gitee.summer9102.develop.mysql.config.provider.SelectCustomProvider;
import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

@RegisterMapper
public interface SelectByPrimaryKeyForUpdateMapper {

    /**
     * 根据主键字段进行查询,方法参数必须包含完整的主键属性,查询条件使用等号
     * 并使用数据库的行锁
     *
     * @param key
     * @return
     */
    @SelectProvider(type = SelectCustomProvider.class, method = "dynamicSQL")
    T selectByPrimaryKeyForUpdate(Object key);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy