Book a Demo

Author Topic: Sharing objects across models  (Read 5272 times)

wdchilders

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Sharing objects across models
« on: March 28, 2008, 06:48:22 am »
Assuming I have more than 1 model in my repository (e.g. Oracle), can I use objects (packages, classes, etc.) from one model in another model?  Can I create and navigate relationships between objects from different models?  

I'm not asking about copying the objects such as importing a package's XMI, I'm asking using them directly so that if the attributes of an object were changed in its home model I would see it in mine.
Bill Childers

Very often, people confuse simple with simplistic. The nuance is lost on most.
-   Clement Mok

thomas.kilian

  • Guest
Re: Sharing objects across models
« Reply #1 on: March 28, 2008, 06:59:10 am »
Two roots in one repository: yes.

Two repositories in one database: no.

wdchilders

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Sharing objects across models
« Reply #2 on: March 28, 2008, 07:25:36 am »
I guess I didn't make myself clear.  I'm asking about sharing objects across 2 models that share the same repository/database by linking not copying.  

I've assumed I can because they are rows in the same tables are they not?  I would also expect to be able to populate the database with a number of pre-defined objects - an augmented eabase - without having a separate copy for each model.  
Bill Childers

Very often, people confuse simple with simplistic. The nuance is lost on most.
-   Clement Mok

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sharing objects across models
« Reply #3 on: March 28, 2008, 09:04:28 am »
See below.

AFAIK this is (still) not possible.

I have not checked for a few versions though, so perhaps it is. There's been some discussion about this in past, some of which hinted indirectly that this might be on the radar for sometime in the future.

I don't remember noticing anything about this in the release notes over the past year or so, but that does not mean it is not so.

Why not check for yourself. [After all, you asked first.]


Create a small Oracle project - it seems you can do more with a DBMS than an EAP in a few cases - and add a second model root. Add a few classes to each; nothing special, just create a diagram and drag a class or two onto it from the toolbox.

Now try to drag a class from one model onto the diagram in the other.

Let us know what happens.

David
« Last Edit: March 28, 2008, 09:18:51 am by Midnight »
No, you can't have it!

wdchilders

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Sharing objects across models
« Reply #4 on: March 28, 2008, 09:11:07 am »
Thanks.  I was trying to avoid doing that right now.  We're qualifiying products for evaluation as our new enterprise UML modeling tool.  A number of us are big fans of Enterprise Architect so we're tryihg to pull together our case for including it.  
Bill Childers

Very often, people confuse simple with simplistic. The nuance is lost on most.
-   Clement Mok

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sharing objects across models
« Reply #5 on: March 28, 2008, 09:22:13 am »
I had a SQL Server repository sitting around for test, so I just tried the above experiment.

It appears to have worked like a charm. I can even create features - class attributes in the test case - and assign classes from the other model as a data type.

The acid test was closing and reopening the project. The stuff still looks OK.

I did not try XMI export and such. Be very careful with that kind of thing until you've tested thoroughly. Remember that references to items defined in the 'foreign' model might not import into another project successfully.

David
No, you can't have it!

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Sharing objects across models
« Reply #6 on: March 28, 2008, 10:25:48 am »
Hello Bill,

There is a whitepaper covering Deployment of EA across multi-user, multi-site and multi-project corporate environments.  I would suggest you read through this and look at the different options available.  

See the Deployment white paper on:
http://www.sparxsystems.com/resources/whitepapers/index.html

I hope this is of help.

wdchilders

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Sharing objects across models
« Reply #7 on: March 29, 2008, 01:26:26 am »
Thanks.  The white paper answered the key questions.  ;D
Bill Childers

Very often, people confuse simple with simplistic. The nuance is lost on most.
-   Clement Mok