Skip to content

WithoutTenantId not working properly on method level #14407

@sadasivaiahgoli

Description

@sadasivaiahgoli

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions