[hibernate-commits] Hibernate SVN: r11378 - trunk/Hibernate3/src/org/hibernate/hql/ast/tree.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Fri Mar 30 07:23:48 EDT 2007
Author: steve.ebersole at jboss.com
Date: 2007-03-30 07:23:48 -0400 (Fri, 30 Mar 2007)
New Revision: 11378
Modified:
trunk/Hibernate3/src/org/hibernate/hql/ast/tree/DotNode.java
Log:
HHH-2534 : better improper HQL collection-dereference error message
Modified: trunk/Hibernate3/src/org/hibernate/hql/ast/tree/DotNode.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/hql/ast/tree/DotNode.java 2007-03-29 22:10:22 UTC (rev 11377)
+++ trunk/Hibernate3/src/org/hibernate/hql/ast/tree/DotNode.java 2007-03-30 11:23:48 UTC (rev 11378)
@@ -217,7 +217,9 @@
}
else {
// Otherwise, this is a primitive type.
- checkLhsIsNotCollection();
+ if ( ! CollectionProperties.isAnyCollectionProperty( propertyName ) ) {
+ checkLhsIsNotCollection();
+ }
dereferenceType = DEREF_PRIMITIVE;
initText();
}
More information about the hibernate-commits
mailing list