HHH-3604 add MySQL engine to table generators
Conflicts: hibernate-core/src/main/java/org/hibernate/id/enhanced/TableGenerator.java
This commit is contained in:
parent
7bb9fc1e82
commit
97c7a18193
|
@ -129,7 +129,8 @@ public class MultipleHiLoPerTableGenerator implements PersistentIdentifierGenera
|
|||
.append( valueColumnName )
|
||||
.append( ' ' )
|
||||
.append( dialect.getTypeName( Types.INTEGER ) )
|
||||
.append( " ) " )
|
||||
.append( " )" )
|
||||
.append( dialect.getTableTypeString() )
|
||||
.toString()
|
||||
};
|
||||
}
|
||||
|
|
|
@ -239,7 +239,8 @@ public class TableGenerator implements PersistentIdentifierGenerator, Configurab
|
|||
|
||||
public String[] sqlCreateStrings(Dialect dialect) throws HibernateException {
|
||||
return new String[] {
|
||||
dialect.getCreateTableString() + " " + tableName + " ( " + columnName + " " + dialect.getTypeName(Types.INTEGER) + " )",
|
||||
dialect.getCreateTableString() + " " + tableName + " ( "
|
||||
+ columnName + " " + dialect.getTypeName(Types.INTEGER) + " )" + dialect.getTableTypeString(),
|
||||
"insert into " + tableName + " values ( 0 )"
|
||||
};
|
||||
}
|
||||
|
|
|
@ -602,7 +602,8 @@ public class TableGenerator implements PersistentIdentifierGenerator, Configurab
|
|||
.append( dialect.getTypeName( Types.BIGINT ) )
|
||||
.append( ", primary key ( " )
|
||||
.append( segmentColumnName )
|
||||
.append( " ) ) " )
|
||||
.append( " ) )" )
|
||||
.append( dialect.getCreateTableString() )
|
||||
.toString()
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue