Does JPOX load the Meta-Data at startup ?
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.