Delete Model from an resource [message #508364] |
Mon, 18 January 2010 15:04 |
|
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
http://cana.web.id
|
|
|
|
Re: Delete Model from an resource [message #508521 is a reply to message #508401] |
Tue, 19 January 2010 10:14 |
|
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..
is there a way that all of reference will be deleted automatically from resource ?
http://cana.web.id
|
|
|
Re: Delete Model from an resource [message #508598 is a reply to message #508521] |
Tue, 19 January 2010 14:53 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
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...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02998 seconds