HHH-13913 An SQL Dialect for PostgreSQL 10 and later. Adds support for Partition table.

This commit is contained in:
jiangHZ 2020-04-18 01:01:55 +08:00 committed by Christian Beikov
parent d901ccfa33
commit 5a57bc9798
1 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,8 @@
*/
package org.hibernate.dialect;
import java.util.List;
import org.hibernate.dialect.identity.IdentityColumnSupport;
import org.hibernate.dialect.identity.PostgreSQL10IdentityColumnSupport;
@ -18,4 +20,15 @@ public class PostgreSQL10Dialect extends PostgreSQL95Dialect {
public IdentityColumnSupport getIdentityColumnSupport() {
return new PostgreSQL10IdentityColumnSupport();
}
/**
* An SQL Dialect for PostgreSQL 10 and later. Adds support for Partition table.
*
* @param tableTypesList
*/
@Override
public void augmentRecognizedTableTypes(List<String> tableTypesList) {
super.augmentRecognizedTableTypes( tableTypesList );
tableTypesList.add( "PARTITIONED TABLE" );
}
}