| @gbadner this also fixes the use of special names like e.g. “size“ in a query like select c.embeddable.size from Entity e join e.collection c. In versions below 5.4 such a query will fail with the following Caused by: org.hibernate.QueryException: illegal syntax near collection: embeddable.size at org.hibernate.persister.collection.CollectionPropertyMapping.toType(CollectionPropertyMapping.java:51) at org.hibernate.hql.internal.ast.tree.FromElementType.getPropertyType(FromElementType.java:397) at org.hibernate.hql.internal.ast.tree.FromElement.getPropertyType(FromElement.java:515) at org.hibernate.hql.internal.ast.tree.DotNode.getDataType(DotNode.java:682) I just wanted to mention that because I had the issue on the radar for a long time and I recently saw https://hibernate.atlassian.net/browse/HHH-13510 which I thought is the same, but isn’t. Would be great if this could be backported to 5.3 |