Author: steve.ebersole(a)jboss.com
Date: 2009-04-22 17:37:21 -0400 (Wed, 22 Apr 2009)
New Revision: 16413
Modified:
core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/Table.java
Log:
use PropertyMapping interface to resolve property columns
Modified: core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/Table.java
===================================================================
--- core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/Table.java 2009-04-22
21:20:04 UTC (rev 16412)
+++ core/branches/antlr3/src/main/java/org/hibernate/sql/ast/tree/Table.java 2009-04-22
21:37:21 UTC (rev 16413)
@@ -29,7 +29,6 @@
package org.hibernate.sql.ast.tree;
import java.util.ArrayList;
-import java.util.LinkedHashSet;
import java.util.HashMap;
import org.hibernate.type.Type;
@@ -226,8 +225,7 @@
}
public String[] getPropertyColumnNames(String propertyName) {
- int index = getEntityPersister().getEntityMetamodel().getPropertyIndex( propertyName
);
- return getEntityPersister().getPropertyColumnNames( index );
+ return getEntityPersister().toColumns( propertyName );
}
public HibernateTree buildIdentifierColumnReferences() {
Show replies by date