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

openjpa does not process persistence unit default <cascade-persist>

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.3.0
    • Fix Version/s: 2.2.1.1, 2.2.3, 2.4.0
    • Component/s: None
    • Labels:
      None

      Description

      For a ManyToMany relationship, I attempted to use the following in the orm to persist the related entities:

      <persistence-unit-metadata>
      <persistence-unit-defaults>
      <delimited-identifiers/>
      </persistence-unit-defaults>
      </persistence-unit-metadata>

      Although openjpa appears to find this, it doesn't use it in an em.persist(). It does work, however, if I put cascade=CascadeType.persist on the @ManyToMany annotation of the entity that is specifically persisted.

        Attachments

          Activity

            People

            • Assignee:
              fyrewyld Jody Grassel
              Reporter:
              dianner Dianne Richards
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: