Re: AW: AW: [JBoss-user] JBoss3.2.1 violates fk constraints

2003-07-21 Thread Alexey Loubyansky
Yes, exactly.

10.3.4.1 Remove methods
"When the remove method is invoked on an entity object, the container
must invoke the entity Bean Provider’s ejbRemove() method as described
in Section 10.5.3. After the bean provider’s ejbRemove() method
returns (and prior to returning to the client), the Container must
remove the entity object from all relationships in which it
participates, and then remove its persistent representation."

alex

Monday, July 21, 2003, 2:08:43 PM, Ingo Bruell wrote:

IB> -BEGIN PGP SIGNED MESSAGE-
IB> Hash: SHA1

IB> Hello Alex,

>> yes, you have to check it yourself. If the schema you use has database
>> constraints, then the db won't let you remove the parent.

IB> But Jboss just removes the link between the parent and the child by erasing
IB> the attribute of the table (for example address_id) and then removes the parent
IB> from the table. Is this the correct behavior ?


IB> best regards

IB> Ingo Bruell

IB> - - ---
IB> <[EMAIL PROTECTED]>
IB> 
IB> Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
IB> GermanyPGP-Public-Key available at pgpkeys.mit.edu

IB> -BEGIN PGP SIGNATURE-
IB> Version: PGPfreeware 6.5.8 for non-commercial use 

IB> iQA/AwUBPxu7i4/nxkgWnuX8EQLgyQCfez0vfANeYbiebdDi1LOO6XQZ+ugAn1W9
IB> eP6leX+DC1BRS/jMdjs62SGS
IB> =WtZe
IB> -END PGP SIGNATURE-




IB> ---
IB> This SF.net email is sponsored by: VM Ware
IB> With VMware you can run multiple operating systems on a single machine.
IB> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
IB> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
IB> ___
IB> JBoss-user mailing list
IB> [EMAIL PROTECTED]
IB> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: AW: [JBoss-user] JBoss3.2.1 violates fk constraints

2003-07-21 Thread Ingo Bruell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Alex,

> yes, you have to check it yourself. If the schema you use has database
> constraints, then the db won't let you remove the parent.

But Jboss just removes the link between the parent and the child by erasing
the attribute of the table (for example address_id) and then removes the parent
from the table. Is this the correct behavior ?


best regards

Ingo Bruell

- - ---
<[EMAIL PROTECTED]>

Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
GermanyPGP-Public-Key available at pgpkeys.mit.edu

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBPxu7i4/nxkgWnuX8EQLgyQCfez0vfANeYbiebdDi1LOO6XQZ+ugAn1W9
eP6leX+DC1BRS/jMdjs62SGS
=WtZe
-END PGP SIGNATURE-




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: AW: [JBoss-user] JBoss3.2.1 violates fk constraints

2003-07-21 Thread Alexey Loubyansky
Hello Ingo,

yes, you have to check it yourself. If the schema you use has database
constraints, then the db won't let you remove the parent.

alex

Monday, July 21, 2003, 12:14:35 PM, Ingo Bruell wrote:

IB> -BEGIN PGP SIGNED MESSAGE-
IB> Hash: SHA1

IB> Hi Alex,

>> it might be really confusing.
>> 
>> If you need parent-child relationships, where child is removed when
>> its parent is being removed, you should use cascade-delete. This is by
>> the spec.
>> Foreign key constraints are used only for database schema generation.

IB> So i have to check for myself if depending objects exists and reject
IB> removing ?

IB> best regards

IB> Ingo Bruell

IB> - - ---
IB> <[EMAIL PROTECTED]>
IB> 
IB> Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
IB> GermanyPGP-Public-Key available at pgpkeys.mit.edu

IB> -BEGIN PGP SIGNATURE-
IB> Version: PGPfreeware 6.5.8 for non-commercial use 

IB> iQA/AwUBPxug6o/nxkgWnuX8EQKNzACgsyvWLJcF+6R3m2An0vduXh6ifX8AoP4P
IB> Evc2n5MNEG6gIRjtaE0hZts5
IB> =OavW
IB> -END PGP SIGNATURE-



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] JBoss3.2.1 violates fk constraints

2003-07-21 Thread Ingo Bruell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Alex,

> it might be really confusing.
> 
> If you need parent-child relationships, where child is removed when
> its parent is being removed, you should use cascade-delete. This is by
> the spec.
> Foreign key constraints are used only for database schema generation.

So i have to check for myself if depending objects exists and reject
removing ?

best regards

Ingo Bruell

- - ---
<[EMAIL PROTECTED]>

Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
GermanyPGP-Public-Key available at pgpkeys.mit.edu

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBPxug6o/nxkgWnuX8EQKNzACgsyvWLJcF+6R3m2An0vduXh6ifX8AoP4P
Evc2n5MNEG6gIRjtaE0hZts5
=OavW
-END PGP SIGNATURE-




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user