Hi,
I don’t know why this query doesn’t work. Return the loadContext null. I checked the documention and the sentences is correct. I use v7.2.14. My project is no legacy.
https://doc.cuba-platform.com/manual-latest/dataManager.html
public LoadContext<Cliente> loadCliente (UUID id) {
loadContext = LoadContext.create(Cliente.class)
.setQuery(LoadContext.createQuery
("select c from extranet_Cliente c where c.empresa_id.id = :id")
.setParameter("id", id))
.setView("_minimal");
return loadContext;
}
The result debugging:
loadContext = null
loadContext = null
this = {SelectEmpresaServiceBean@12695}
id = {UUID@12696} “4a969a53-a2ac-d686-c1d6-6ca40de02898”
dataManager = {DataManagerBean@12700}
loadContext = null
Please, someone has a idea what is wrong?. Thanks