Skip to content

Commit 705a418

Browse files
committed
HHH-19608 it seems that Db2 also requires that partition keys belong to PK
1 parent b9b9be3 commit 705a418

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,4 +1258,8 @@ public boolean supportsRowValueConstructorSyntaxInInList() {
12581258
return false;
12591259
}
12601260

1261+
@Override
1262+
public boolean addPartitionKeyToPrimaryKey() {
1263+
return true;
1264+
}
12611265
}

hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4634,6 +4634,7 @@ public boolean supportsPartitionBy() {
46344634
*
46354635
* @since 7.1
46364636
*/
4637+
@Incubating
46374638
public boolean addPartitionKeyToPrimaryKey() {
46384639
return false;
46394640
}

0 commit comments

Comments
 (0)