HHH-9369 Fix @Formula of enum type results in ClassCastException (minor fix for 4.2)

This commit is contained in:
Gail Badner 2014-09-19 13:50:06 -07:00
parent 5d065bc263
commit 1883fcbb7b
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ public class SimpleValue implements KeyValue {
try { try {
String[] columnsNames = new String[columns.size()]; String[] columnsNames = new String[columns.size()];
for ( int i = 0; i < columns.size(); i++ ) { for ( int i = 0; i < columns.size(); i++ ) {
Selectable column = columns.get(i); Object column = columns.get(i);
if (column instanceof Column){ if (column instanceof Column){
columnsNames[i] = ((Column) column).getName(); columnsNames[i] = ((Column) column).getName();
} }