You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Hello,
I am trying to use projection in order to query an entity in the datastore. I don't manage to use Slice as return type with my projection. The same thing works fine with a Page return type :
My entity is called "Customer" and have a lot of fields.
I have created a projection interface called CustomerProjection :
public interface CustomerProjection { String getLastName(); }
And in my repository, I have the following request :
This request work well, but when I change the return type in "Slice", I constat at runTime that I obtain a Slice<Customer> in place of Slice<CustomerProjection>
Is that a bug? is this problem due to some mistake from me?
Regards
CG
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to use projection in order to query an entity in the datastore. I don't manage to use Slice as return type with my projection. The same thing works fine with a Page return type :
My entity is called "Customer" and have a lot of fields.
I have created a projection interface called CustomerProjection :
public interface CustomerProjection { String getLastName(); }
And in my repository, I have the following request :
public interface CustomerRepository extends DatastoreRepository<Customer, Long> { Page<CustomerProjection> findByIsActiveAndIsDeleted(boolean isActive, boolean isDeleted, Pageable pageable); }
This request work well, but when I change the return type in "Slice", I constat at runTime that I obtain a
Slice<Customer>
in place ofSlice<CustomerProjection>
Is that a bug? is this problem due to some mistake from me?
Regards
CG
The text was updated successfully, but these errors were encountered: