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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0, 2.3.0
    • 2.2.1.1, 2.2.3, 2.4.0
    • None
    • 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

            fyrewyld Jody Grassel
            dianner Dianne E. Richards
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: