Delete Model from an resource [message #508364] |
Mon, 18 January 2010 10:04  |
Eclipse User |
|
|
|
Hi all,
I have model like this :
EmailAccount
- list of mailFolder
- MailFolder contains list of SubFolder and mailentry
When i delete emailaccount, mailfolder and mailentry not delete from resource, can somebody tell me how to delete all reference automatically when delete the parent ??
Thanks,
CanA
|
|
|
|
|
Re: Delete Model from an resource [message #508598 is a reply to message #508521] |
Tue, 19 January 2010 09:53  |
Eclipse User |
|
|
|
CanA,
Comments below.
Rencana Tarigan wrote:
> Thanks for reply Ed,
>
> I have object : EmailAccount
> EmailFolder
> EmailEntry
>
> and i have 1 resource for each model..
> EmailAccount :
> - mailFolder : EmailFolder (cardinality 1...*)
>
> MailFolder : - mailEntry : EmailEntry (cardinality 1...*)
>
> what i'm doing now is, when i delete EmailAccount from resource, i
> must delete mailEntry from all mailFolder first and then delete
> emailaccount and than commit the transaction..
Again, I don't know if you are using commands.
>
> is there a way that all of reference will be deleted automatically
> from resource ?
It's still not so clear where your containment references are...
|
|
|
Powered by
FUDForum. Page generated in 0.05638 seconds