@ -2806,4 +2806,22 @@ public abstract class Dialect implements ConversionContext {
return buf.append(')').toString();
}
/**
* 获取建表时分发策略字符串
*
* @param columnList 主键列集合
* @return String
*/
public String sqlDistributeString(List<Column> columnList) {
return "";
* 是否强制添加引用符号
* @return 是/否
public boolean forceQuote() {
return false;
@ -96,7 +96,7 @@ public class Column implements Selectable, Serializable, Cloneable {
public String getQuotedName(Dialect d) {
return quoted ?
return quoted || d.forceQuote() ?
d.openQuote() + name + d.closeQuote() :
name;
@ -74,7 +74,11 @@ public class PrimaryKey extends Constraint {
public String sqlDistributeString(Dialect dialect) {
return dialect.sqlDistributeString(getColumns());
public String generatedConstraintNamePrefix() {
return "PK_";
@ -154,6 +154,8 @@ public class StandardTableExporter implements Exporter<Table> {
applyInitCommands( table, sqlStrings );
buf.append(table.getPrimaryKey().sqlDistributeString(dialect));
return sqlStrings.toArray( new String[ sqlStrings.size() ] );