Closed otaviojava closed 1 year ago
At the CDI reflection, we are using this as extension EntityMetadataExtension
@amoscatelli
I did it this way: https://github.com/JNOSQL/demo-ee/tree/main/quarkus-mongodb
I created the Application class which starts and load the class.
The problem is that the EntityMetadataExtension afterBeanDiscovery(@Observes BeforeBeanDiscovery event) is never called. Probably Quarkus doesn't support BeforeBeanDiscovery event.
I am gonna dig into this tomorrow.
Probably all we had to do is to provide an Alternative EntityMetadataExtension
Yeap, I did it manually:
@Inject
private EntitiesMetadata entities;
void onStart(@Observes StartupEvent ev) {
LOGGER.info("Starting application loading entities");
entities.get(Fish.class);
}
Please, let me know what you need, so we can fix it and release a new version fix: 1.0.1.
No worry, there is no need to release a new version of JNoSQL We are going to solve it extension side.
The "clean" solution is to manually trigger the afterBeanDiscovery method. I am studying the best approach for quarkus, give me some more time :)
Thank you, @amoscatelli, please, let me know when the new release is ready for more tests.
When I execute the:
It returns: