From 45220303b4f63b39e63df8fe1e0b369f6de320d3 Mon Sep 17 00:00:00 2001 From: Jan-Willem Gmelig Meyling Date: Mon, 5 Mar 2018 01:23:04 +0100 Subject: [PATCH] Use getSubclassTableSpan instead of getTableSpan, fixes #521 --- .../persistence/impl/hibernate/HibernateJpaProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpaProvider.java b/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpaProvider.java index 350a0c9096..1cc75939d2 100644 --- a/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpaProvider.java +++ b/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpaProvider.java @@ -483,17 +483,17 @@ public String[] getColumnTypes(EntityType entityType, String attributeName) { Table[] tables; if (entityPersister instanceof JoinedSubclassEntityPersister) { - tables = new Table[((JoinedSubclassEntityPersister) entityPersister).getTableSpan()]; + tables = new Table[((JoinedSubclassEntityPersister) entityPersister).getSubclassTableSpan()]; for (int i = 0; i < tables.length; i++) { tables[i] = database.getTable(entityPersister.getSubclassTableName(i)); } } else if (entityPersister instanceof UnionSubclassEntityPersister) { - tables = new Table[((UnionSubclassEntityPersister) entityPersister).getTableSpan()]; + tables = new Table[((UnionSubclassEntityPersister) entityPersister).getSubclassTableSpan()]; for (int i = 0; i < tables.length; i++) { tables[i] = database.getTable(entityPersister.getSubclassTableName(i)); } } else if (entityPersister instanceof SingleTableEntityPersister) { - tables = new Table[((SingleTableEntityPersister) entityPersister).getTableSpan()]; + tables = new Table[((SingleTableEntityPersister) entityPersister).getSubclassTableSpan()]; for (int i = 0; i < tables.length; i++) { tables[i] = database.getTable(entityPersister.getSubclassTableName(i)); }