com.baomidou.mybatisplus.extension.incrementer.DB2KeyGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-plus-extension Show documentation
Show all versions of mybatis-plus-extension Show documentation
An enhanced toolkit of Mybatis to simplify development.
package com.baomidou.mybatisplus.extension.incrementer;
import com.baomidou.mybatisplus.core.incrementer.IKeyGenerator;
/**
*
* DB2 Sequence
*
*
* @author Caratacus
* @since 2017-06-12
*/
public class DB2KeyGenerator implements IKeyGenerator {
@Override
public String executeSql(String incrementerName) {
StringBuilder sql = new StringBuilder();
sql.append("values nextval for ");
sql.append(incrementerName);
return sql.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy