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
when we deploy the fresh application and try to fetch the Odata entity list it is giving blank list, please check the image
Then once again if we redeploy it it started working as expected. .
So in first instance when we deploy application , we are receiving empty entity list after multiple redeployment it started working fine.
After debugging the code i believe there might be some issue in below logic of IntermediateEntityContainer java class on method @OverRide
protected void lazyBuildEdmItem() throws ODataJPAModelException {
if (edmContainer == null) {
postProcessor.processEntityContainer(this);
edmContainer = new CsdlEntityContainer();
edmContainer.setName(getExternalName()); edmContainer.setEntitySets(buildEntitySets());
edmContainer.setFunctionImports(buildFunctionImports());
edmContainer.setActionImports(buildActionImports());
edmContainer.setAnnotations(edmAnnotations);
// TODO Singleton
} else if (edmContainer != null && edmContainer.getEntitySets().isEmpty()) {
edmContainer.setEntitySets(buildEntitySets());
}
}
I have added else if condition but still facing same issue, schema list are not getting loaded properly i believe
The text was updated successfully, but these errors were encountered:
keshavsahuzellis
changed the title
Entity are not loading when we application is deployed
Entity are not loading when application is freshly deployed
Dec 26, 2023
Hi,
.
So in first instance when we deploy application , we are receiving empty entity list after multiple redeployment it started working fine.
After debugging the code i believe there might be some issue in below logic of IntermediateEntityContainer java class on method
@OverRide
protected void lazyBuildEdmItem() throws ODataJPAModelException {
if (edmContainer == null) {
postProcessor.processEntityContainer(this);
edmContainer = new CsdlEntityContainer();
edmContainer.setName(getExternalName());
edmContainer.setEntitySets(buildEntitySets());
edmContainer.setFunctionImports(buildFunctionImports());
edmContainer.setActionImports(buildActionImports());
edmContainer.setAnnotations(edmAnnotations);
// TODO Singleton
} else if (edmContainer != null && edmContainer.getEntitySets().isEmpty()) {
edmContainer.setEntitySets(buildEntitySets());
}
}
I have added else if condition but still facing same issue, schema list are not getting loaded properly i believe
The text was updated successfully, but these errors were encountered: