joaoneves opened a new issue, #14582: URL: https://github.com/apache/grails-core/issues/14582
As referencing the issue https://github.com/grails/grails-core/issues/1727 I notice that it is not possible to define something such as ```groovy def saleCriteria = new DetachedCriteria(Sale).build { employee { region('r', CriteriaSpecification.LEFT_JOIN) } } ``` When I use a common kind of typing a criteria, I can use this ```groovy MyEntity.createCriteria().list(){ createAlias('user', 'userAlias') createAlias('userAlias.document', 'document', CriteriaSpecification.LEFT_JOIN) ... } ``` Like I want to reuse a DetachedCriteria in another query, but only using count, such as saleCriteria.list() and saleCriteria.count(), for example. I checked out the source code and it doesn't has a way to specify the JOIN mode. I'm currently using Grails Version 3.2.9. -- 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]
