From 1883fcbb7b5b1a672955a5cefdd6eb04598e4abb Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 19 Sep 2014 13:50:06 -0700 Subject: [PATCH] HHH-9369 Fix @Formula of enum type results in ClassCastException (minor fix for 4.2) --- .../src/main/java/org/hibernate/mapping/SimpleValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java b/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java index 9d8a976ff0..ddfb076f12 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java @@ -365,7 +365,7 @@ public class SimpleValue implements KeyValue { try { String[] columnsNames = new String[columns.size()]; for ( int i = 0; i < columns.size(); i++ ) { - Selectable column = columns.get(i); + Object column = columns.get(i); if (column instanceof Column){ columnsNames[i] = ((Column) column).getName(); }