Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16315

[GSS](7.2.z) HHH-13241 / HHH-13138 - Constraint violation when deleting entites in bi-directional, lazy OneToMany association with bytecode enhancement

XMLWordPrintable

      Deleting all entities on both sides of a lazy, bi-directional OneToMany association fails with a constraint violation if (and only if) bytecode enhancement is enabled (e.g. <enableLazyInitialization>true</enableLazyInitialization> using the hibernate-enhance-maven-plugin) and if all the "many" side entities are deleted (i.e. entityManager.remove(...) is called) before the "one" side entities.

              gbadner@redhat.com Gail Badner (Inactive)
              rhn-support-sfikes Stephen Fikes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: