diff --git a/DmKeyGenerator b/DmKeyGenerator new file mode 100644 index 0000000000000000000000000000000000000000..279837ffdbb28ce58a32912404c066e1be4d5d55 --- /dev/null +++ b/DmKeyGenerator @@ -0,0 +1,27 @@ +package com.baomidou.mybatisplus.extension.incrementer; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.baomidou.mybatisplus.annotation.DbType; +import com.baomidou.mybatisplus.core.incrementer.IKeyGenerator; + +/** + * DM Sequence + * + * @author cdtjj + * @since 2022-04-22 + */ + +public class DmKeyGenerator implements IKeyGenerator { + @Override + public String executeSql(String incrementerName) { + // TODO Auto-generated method stub + return "SELECT " + incrementerName + ".NEXTVAL FROM DUAL"; + } + + @Override + public DbType dbType() { + // TODO Auto-generated method stub + return DbType.DM; + } +}