On 10 January 2014 18:41, Andy Jefferson <[email protected]> wrote:

>
> > Basically, I think it amounts to rebuilding the metamodel for the changed
> > class(es).  In Isis I already have such an API [2], but is there anything
> > similar in DataNucleus?
>
> it would be to reload the
> PMF/EMF when metadata/class files change, and when a persistence class
> changes
> then flush cache entries.
>


In Isis the PMF is held (in effect) globally [1].  So if I basically throw
away the old PMF and recreate, would that be sufficient?

I guess the bit I'm querying is "flush cache entries".  What does that mean
if I have a new PMF?

Thx
Dan



[1]
https://github.com/apache/isis/blob/37beb951ec55170062eb1f9ae5023e428d619016/component/objectstore/jdo/jdo-datanucleus/src/main/java/org/apache/isis/objectstore/jdo/datanucleus/DataNucleusApplicationComponents.java#L47

Reply via email to