Hello, I am trying to create a pivot table that is loaded by a custom datasource which calls a service to obtain the data. This service makes a query to the database and then creates instances of a non-persistent entity to contain the returned data, this non-persistent entity is the one that is returned in the custom datasource. The problem is that the service does return all the data but the custom datasource is only storing the last record and therefore only shows me a record in the pivot table. I attach images of the code and I appreciate any help that indicates me that I am wrong.
Thanks and regards.