sbglasius
10/08/2026, 7:39 AMrss
10/08/2026, 12:14 PMHenrique Lobo Weissmann
10/08/2026, 2:29 PMgsandrew
10/08/2026, 7:52 PMHenrique Lobo Weissmann
10/08/2026, 8:10 PMHenrique Lobo Weissmann
10/08/2026, 8:10 PMHenrique Lobo Weissmann
10/13/2026, 12:44 PMgiangio
10/14/2026, 9:10 AMfetchParams.sort = [
'date' : 'asc',
'individual.lastname': 'asc', // <- This is not working anymore
]
used in:
List<TWorkLog> listAll(Map filterParams = [:], Map fetchParams = [:]) {
if (!fetchParams.sort) fetchParams.sort = [dateTimeStart: 'asc']
if (!fetchParams.fetch) fetchParams.fetch = fetch
def query = buildQuery(filterParams)
return query.list(fetchParams)
}
With a where query:
@CompileDynamic
private DetachedCriteria<TWorkLog> buildQuery(Map filterParams) {
def query = TWorkLog.where {}
...
return query
}
Reading the documentation I am supposed to create an alias for the association, something like def sortIndividual = individual and then sorting on that. Since we have an automation in table headers that automatically sort columns based on their names, I was wondering if there is a way to revert to the old behaviourgiangio
10/14/2026, 9:11 AMgiangio
10/14/2026, 9:12 AMgiangio
10/14/2026, 10:15 AMdef query = TWorkLog.where {
def individualSort = individual
}
// Adding other fragments to the query...
Then sorting with the following:
fetchParams.sort = [
'date' : 'asc',
'individualSort.lastname': 'asc', // <- This is not working anymore
]
throws:
java.lang.IllegalArgumentException: Invalid sort propertygiangio
10/14/2026, 10:37 AMgene
10/14/2026, 1:17 PMgiangio
10/14/2026, 1:34 PMuser
10/21/2026, 11:35 AMgene
10/22/2026, 7:36 PMJames Fredley
10/22/2026, 9:14 PMgiangio
10/25/2026, 5:17 PMNot an entity: exception. I have methods annotated with @CurrentTenant that must acccess the default tenant. So I have a nested @WithoutTenant. Neither me nor the AI have found a solution yet. The code works with H5.
How can I tell GORM to query the default tenant when I am in the context of a current tenant?
Or is that a bad practice?
We have User/Groups/Tenants/Connections/AuthenticationProviders domain objects only on the default tenant, they serve all the tenants.giangio
10/25/2026, 5:25 PMTenantException: Cannot resolve a single current tenant: [test, default] are bound on this thread for different datastores. Use get(Datastore) to select the tenant of the datastore being operated on.jdaugherty
10/25/2026, 8:09 PMgiangio
10/25/2026, 8:44 PMpieter
10/28/2026, 4:11 PMpieter
10/28/2026, 4:11 PMjdaugherty
10/28/2026, 4:11 PMpieter
10/28/2026, 4:12 PMCould not find org.grails:grails-datastore-gorm-support:7.0.8.RELEASE.pieter
10/28/2026, 4:12 PMjdaugherty
10/28/2026, 4:13 PMjdaugherty
10/28/2026, 4:13 PMHenrique Lobo Weissmann
10/28/2026, 6:28 PMAndrew Walters
10/29/2026, 1:20 PM