You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Marcin Tomasik (JIRA)" <ji...@apache.org> on 2009/02/21 13:00:01 UTC
[jira] Created: (OPENJPA-935) Removing entities with Embedded field
issue multiple delete statements
Removing entities with Embedded field issue multiple delete statements
----------------------------------------------------------------------
Key: OPENJPA-935
URL: https://issues.apache.org/jira/browse/OPENJPA-935
Project: OpenJPA
Issue Type: Bug
Components: jpa
Affects Versions: 1.2.0
Reporter: Marcin Tomasik
> 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?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OPENJPA-935) Removing entities with Embedded field
issue multiple delete statements
Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Donald Woods updated OPENJPA-935:
---------------------------------
Fix Version/s: (was: 2.0.0)
2.0.0-M2
1.1.1
> Removing entities with Embedded field issue multiple delete statements
> ----------------------------------------------------------------------
>
> Key: OPENJPA-935
> URL: https://issues.apache.org/jira/browse/OPENJPA-935
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 1.2.0
> Reporter: Marcin Tomasik
> Assignee: Pinaki Poddar
> Fix For: 1.1.1, 2.0.0-M2
>
>
> > 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?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OPENJPA-935) Removing entities with Embedded
field issue multiple delete statements
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pinaki Poddar resolved OPENJPA-935.
-----------------------------------
Fix Version/s: (was: 1.1.1)
2.0.0
Resolution: Fixed
> Removing entities with Embedded field issue multiple delete statements
> ----------------------------------------------------------------------
>
> Key: OPENJPA-935
> URL: https://issues.apache.org/jira/browse/OPENJPA-935
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 1.2.0
> Reporter: Marcin Tomasik
> Assignee: Pinaki Poddar
> Fix For: 2.0.0
>
>
> > 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?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OPENJPA-935) Removing entities with Embedded field
issue multiple delete statements
Posted by "David Ezzio (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Ezzio updated OPENJPA-935:
--------------------------------
Fix Version/s: 1.1.1
Merged change at trunk revision 746640 to branch 1.1.x at 802837
> Removing entities with Embedded field issue multiple delete statements
> ----------------------------------------------------------------------
>
> Key: OPENJPA-935
> URL: https://issues.apache.org/jira/browse/OPENJPA-935
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 1.2.0
> Reporter: Marcin Tomasik
> Assignee: Pinaki Poddar
> Fix For: 1.1.1
>
>
> > 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?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (OPENJPA-935) Removing entities with Embedded
field issue multiple delete statements
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pinaki Poddar reassigned OPENJPA-935:
-------------------------------------
Assignee: Pinaki Poddar
> Removing entities with Embedded field issue multiple delete statements
> ----------------------------------------------------------------------
>
> Key: OPENJPA-935
> URL: https://issues.apache.org/jira/browse/OPENJPA-935
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 1.2.0
> Reporter: Marcin Tomasik
> Assignee: Pinaki Poddar
>
> > 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?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.