OpenJPA
  1. OpenJPA
  2. OPENJPA-935

Removing entities with Embedded field issue multiple delete statements

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.1.1, 2.0.0-M2
    • Component/s: jpa
    • Labels:
      None

      Description

      > I have a following beans:
      >
      > @Embeddable
      > class A

      { > int field1 > }

      >
      > @Entity
      > class B

      { > @Id > long id; > > int field2 > > @Embedded > A field3 > }

      >
      > When I trying to delete all instances of B entity from data storage by
      > "delete from B" I got:
      >
      > 1. Query ("select" statement) for all B instances
      > 2. For each instance from 1. delete statement
      >
      > Why this is not delete by simple "delete from B" sql statement?

        Activity

        Hide
        David Ezzio added a comment -

        Merged change at trunk revision 746640 to branch 1.1.x at 802837

        Show
        David Ezzio added a comment - Merged change at trunk revision 746640 to branch 1.1.x at 802837

          People

          • Assignee:
            Pinaki Poddar
            Reporter:
            Marcin Tomasik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development