io.github.nichetoolkit.mybatis.MybatisSaveMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-toolkit-starter Show documentation
Show all versions of mybatis-toolkit-starter Show documentation
mybatis toolkit starter project for Spring Boot
package io.github.nichetoolkit.mybatis;
import io.github.nichetoolkit.rice.RestId;
import io.github.nichetoolkit.rice.mapper.SaveMapper;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
/**
* MybatisSaveMapper
* The mybatis save mapper interface.
* @param {@link io.github.nichetoolkit.rice.RestId} The generic parameter is RestId
type.
* @param {@link java.lang.Object} The parameter can be of any type.
* @author Cyan ([email protected])
* @see io.github.nichetoolkit.rice.RestId
* @see io.github.nichetoolkit.mybatis.MybatisMapper
* @see io.github.nichetoolkit.rice.mapper.SaveMapper
* @since Jdk1.8
*/
public interface MybatisSaveMapper, I> extends MybatisMapper, SaveMapper {
@Override
@Lang(MybatisSqlSourceCaching.class)
@InsertProvider(MybatisSqlProviderResolver.class)
Integer save(@Param("entity") E entity);
@Override
@Lang(MybatisSqlSourceCaching.class)
@InsertProvider(MybatisSqlProviderResolver.class)
Integer saveDynamic(@Param("tablename") String tablename, @Param("entity") E entity);
@Override
@Lang(MybatisSqlSourceCaching.class)
@InsertProvider(MybatisSqlProviderResolver.class)
Integer saveAll(@Param("entityList") Collection entityList);
@Override
@Lang(MybatisSqlSourceCaching.class)
@InsertProvider(MybatisSqlProviderResolver.class)
Integer saveDynamicAll(@Param("tablename") String tablename, @Param("entityList") Collection entityList);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy