I have a Service class with getAllStudentCustom method
and I use it
It working correctly
then
I have a Custom Controller class with getAllStudent method
it use getAllStudentCustom in Service class inside
and I use it
I can’t get all of my student like use standalone Service API
How I can fix it ?
kjell1906
(Kjell Dirdal)
October 14, 2021, 9:56pm
2
Do you get any student data in Logger?
Try debugging and see if there is any data in studentServiceCustom.getAllStudentCustom()
The data returned when I use the Service API, you will see in Postman (In the picture)
ghr
(Grégory HRYCAJ)
November 24, 2021, 10:54am
4
Hello,
He did not answered, but I have the same problem calling dataManager.load(MyEntity.class).all().load() as in the sample does return 0 entity wherease calling a jpql statement from this same dataManager returns results, how would you fix this ?
albudarov
(Alexander Budarov)
November 24, 2021, 11:55am
5
The problem can be with role permissions. Check that the user has some role that has READ permission for the entity you’re requesting.
ghr
(Grégory HRYCAJ)
November 24, 2021, 2:22pm
6
Thanks for the quick replay.
It might be indeed a role permission problem.
I have updated it and I am now able to request the given entity with .all() method
Best regards