Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity are not loading when application is freshly deployed #263

Open
keshavsahuzellis opened this issue Dec 26, 2023 · 0 comments
Open

Comments

@keshavsahuzellis
Copy link

keshavsahuzellis commented Dec 26, 2023

Hi,

  1. when we deploy the fresh application and try to fetch the Odata entity list it is giving blank list, please check the image
    image
  2. Then once again if we redeploy it it started working as expected.
    image.

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

@keshavsahuzellis 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant