Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1366

Remove need for an EMF from OpenJPAPersistenceUtil and TraversableResolverImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-M3
    • 2.0.0-beta
    • validation
    • None

    Description

      As pointed out by Pinaki and confirmed by Jeremy, we don't need an EMF for the isLoaded() call.

      From Pinaki - We can answer isLoaded() without really asking every broker to llok up in its cache or something. If the given instance pc is PersitenceCapable and has a non-null StateManager – it is managed by us. If the question is: is pc managed by a specific EMF e, then also we can navigate from pc->sm->broker->brokerfactory->emf and compare by reference with e.

      Attachments

        Activity

          People

            drwoods Donald Woods
            drwoods Donald Woods
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: