Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does JPOX load the Meta-Data at startup ?

Data JPOX load Meta startup
0
10 Posted

Does JPOX load the Meta-Data at startup ?

0

JPOX loads the MetaData for the classes it encounters when it encounters them (dynamically). If you call pm.getExtent() on a class then JPOX will load the MetaData for that class (and its superclasses) at that time, unless the MetaData is already loaded. This can have an effect where you want to do a query for all instances includign subclasses of a particular class. In that case JPOX doesnt know what the possible subclasses are and so will only retrieve the subclasses that it knows about. The best way to get around this is to call getExtent() on each of the subclasses first (the first time you meet it only), and then do the Query. Please refer to the “Auto-Start Mechanism” for details of another way of alleviating these issues.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.