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

Broker can be used with mappings not synchronized

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.2
    • Fix Version/s: None
    • Component/s: jpa
    • Labels:
      None

      Description

      If mapping synchronization fails once, then the next time creating a broker is attempted, it simply succeeds. This means running broker over problematic mappings, which is probably not cool.

      JDBCBrokerFactory.newBrokerImpl(String, String) sets the "_synchronizedMappings" to true before calling the implementation, causing this. Setting the flag to true should be moved past the actual initialization call.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pveselov Pawel Veselov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: