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

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

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

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 Providers ejbRemove() method as described in Section 10.5.3. After the bean providers ejbRemove() method returns (and prior to returning to the client), the