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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        387d 9h 29m 1 Pinaki Poddar 15/Mar/10 21:29
        Resolved Resolved Closed Closed
        37d 23h 3m 1 Donald Woods 22/Apr/10 21:32
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Donald Woods made changes -
        Fix Version/s 1.1.1 [ 12313177 ]
        Fix Version/s 2.0.0-M2 [ 12313483 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Pinaki Poddar made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Fix Version/s 1.1.1 [ 12313177 ]
        David Ezzio made changes -
        Fix Version/s 1.1.1 [ 12313177 ]
        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
        Pinaki Poddar made changes -
        Field Original Value New Value
        Assignee Pinaki Poddar [ ppoddar@apache.org ]
        Marcin Tomasik created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development