ruthst00 commented on code in PR #16573:
URL: https://github.com/apache/grails-core/pull/16573#discussion_r4357006253
##########
grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/query/AliasRegistry.java:
##########
@@ -56,6 +56,13 @@ public boolean isDefined(String alias) {
return false;
}
+ /**
+ * Whether this query declares the alias, independently of any enclosing
query.
+ */
+ public boolean isOwnDefined(String alias) {
Review Comment:
Fixed in
https://github.com/apache/grails-core/pull/16573/changes/cdd00b85f3ba7803cea912089f14c090b0d5fbb6
##########
grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/query/JoinTracker.java:
##########
@@ -52,6 +52,14 @@ public void addJoin(String path, From<?, ?> from) {
return join;
}
+ /**
+ * Returns the join registered by this query, ignoring enclosing queries
because
+ * an association path is relative to the root of the query it appears in.
+ */
+ public From<?, ?> getOwnJoin(String path) {
Review Comment:
Fixed in
https://github.com/apache/grails-core/pull/16573/changes/cdd00b85f3ba7803cea912089f14c090b0d5fbb6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]