From 5a57bc97983391a84cbeea82f9ce7e69466072a4 Mon Sep 17 00:00:00 2001 From: jiangHZ Date: Sat, 18 Apr 2020 01:01:55 +0800 Subject: [PATCH] HHH-13913 An SQL Dialect for PostgreSQL 10 and later. Adds support for Partition table. --- .../org/hibernate/dialect/PostgreSQL10Dialect.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL10Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL10Dialect.java index 20fd0d7952..69d99b246f 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL10Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL10Dialect.java @@ -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 tableTypesList) { + super.augmentRecognizedTableTypes( tableTypesList ); + tableTypesList.add( "PARTITIONED TABLE" ); + } }