Hi, we use Apache OJB for persistence.
Usually we use the proxy mechanism to have a lazy loading behaviour of 1:n relationships. The proxy mechanism is defined in the repository definition file.
Now we have one special situation in that I want to force OJB to load all related objects at once, immediately.
I.e. this query:
Collection<FooClass> result = (Collection<FooClass>) broker.getCollectionByQuery(query);
is supposed to load all related classes (e.g. BarClass
) immediatly. In all other situations the BarClass
should be loaded lazily.
Is there a possibility to change the loading behaviour at runtime?