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

com.github.wz2cool.dynamic.mybatis.mapper.mysql.InsertIgnoreMapper Maven / Gradle / Ivy

There is a newer version: 3.2.32
Show newest version
package com.github.wz2cool.dynamic.mybatis.mapper.mysql;

import com.github.wz2cool.dynamic.mybatis.mapper.provider.InsertIgnoreProvider;
import org.apache.ibatis.annotations.InsertProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

/**
 * insert ignore mapper (mysql)
 *
 * @author frank
 */
@RegisterMapper
public interface InsertIgnoreMapper {

    /**
     * 保存一个实体,null的属性也会保存,不会使用数据库默认值
     *
     * @param record
     * @return
     */
    @InsertProvider(type = InsertIgnoreProvider.class, method = "dynamicSQL")
    int insertIgnore(T record);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy