-
-
Notifications
You must be signed in to change notification settings - Fork 969
Open
Description
I have Book objects with different tenantIds. But I want to retrive all tenantsId objects from the domain object. But it is not retrieving. It is showing empty list.My method is below.WithoutTenantId not working
For example my book documents are:
| id | bookName | tenant_id |
|---|---|---|
| 1 | abc | 2 |
| 2 | xyz | 3 |
I want to pull both tenant 2 and 3 data.
@WithoutTenant
List<Book> findAllBooks(){
List<Book> bookList=Book.findAll()
return bookList;
}
MyEnvironment is like this
grailsVersion=3.2.11
gradleWrapperVersion=3.4.1
gormVersion=6.1.10.RELEASE
Reactions are currently unavailable