Book a Demo

Author Topic: ERD - how to set total participation in ERD::ERD_Relationship  (Read 10368 times)

momochan

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
ERD - how to set total participation in ERD::ERD_Relationship
« on: February 28, 2017, 12:10:36 pm »
Hi
   I want to set total participation relationship between entity, but I cannot find it.

My ERD is          |Employee| -- <works for>-- |Department|

I want to set      |Employee| -- <<works for>> == ||Department||

How can I set the relationship   <<works for>>==||Department||


momochan.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #1 on: February 28, 2017, 08:30:24 pm »
Try Diagram Properties/Connectors/top right: IDEF1X. No idea if that really helps.

q.

momochan

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #2 on: March 01, 2017, 04:33:12 am »
Thank for your advise, qwerty

I try it, but it's not display.

Has anyone know how to fix this issue?

I use EA v12.1 (1230).
I think, EA not implement this feature, total participation relationship between weak-entity,
it's mandatory feature!!

momochan

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #3 on: March 01, 2017, 07:15:51 am »
You need to be aware, that EA is not an ERD tool, but a UML tool which also has partial support for ERD (in the form of IDEF1X). What you can do is to write shape scripts for connectors you don't find in the defaults.

q.

momochan

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #4 on: March 01, 2017, 11:37:16 am »
What will I do. Could you advise me?

momochan

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #5 on: March 01, 2017, 11:46:19 am »
What will I do. Could you advise me?

You'd need to create an enhanced ERD MDG with all of the features that you need.  ERD is an internal technology so you won't have a MDG to copy.  The other option is to log a feature request with Sparx to enhance their MDG.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #6 on: March 01, 2017, 08:16:32 pm »
If you're just after one additional connector type you could first try writing a shape script for that. Define a stereotype an assign it a shape script. You will need to define this in your repository. Depending on the environment you are working in, a MDG is the ultimate way to go.

q.

momochan

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #7 on: March 10, 2017, 12:51:28 pm »
Thank for your advise, qwerty.

I will try it.

momochan

@li

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #8 on: March 11, 2018, 07:24:43 am »
0..1 -> partial/optional - 1(cardinality)
0..*-> optional -m(cardinality)
1..1-> total/mandatory - 1(cardinality)
1..*-> mandatory - m (cardinality)
Use UML2.1 notation to see modality/cardinality values on the ERD.

@li

Richard Freggi

  • EA User
  • **
  • Posts: 493
  • Karma: +18/-7
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #9 on: March 11, 2018, 02:31:11 pm »
Hello

I am curious what would total participation look like in Crow's Feet (I.E.) notation?  Or what would a SQL DDL code for total participation look like?

If it's 1:1 as suggested in previous post, it's certainly possible to do with EA but 1:1 is usually a sign of a problem in the data model... probably semantic mistakes or treating an attribute as if it was an entity, or using 2 entities where 1 would be enough.  I'm curious to know... thanks!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #10 on: March 12, 2018, 10:50:06 am »
Hello

I am curious what would total participation look like in Crow's Feet (I.E.) notation?  Or what would a SQL DDL code for total participation look like?

If it's 1:1 as suggested in previous post, it's certainly possible to do with EA but 1:1 is usually a sign of a problem in the data model... probably semantic mistakes or treating an attribute as if it was an entity, or using 2 entities where 1 would be enough.  I'm curious to know... thanks!
In our modelling environment, we've gone for crow's feet notation for ALL our Association related (or based) relationships.  We believe it best renders the relationship between the instances of the classifiers.  We even developed a mechanism for highlighting unconventional relationships (in Sharia law countries, a man may have 0..4 wives).

As far as 1:1  relationships, they need to be confirmed but aren't, prima facie, wrong.  Incorrect 1:1 associations are a common newbie, mistake, but we are usually cured of that pretty quickly.

Paolo

[Edit: corrected 1..1 to 1:1
« Last Edit: March 12, 2018, 02:15:49 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #11 on: March 12, 2018, 02:00:15 pm »
As far as 1..1 (1) relationships, they need to be confirmed but aren't, prima facie, wrong.  Incorrect 1..1 associations are a common newbie, mistake, but we are usually cured of that pretty quickly.

I try to tell my wife that, but will she listen?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #12 on: March 12, 2018, 02:14:52 pm »
As far as 1..1 (1) relationships, they need to be confirmed but aren't, prima facie, wrong.  Incorrect 1..1 associations are a common newbie, mistake, but we are usually cured of that pretty quickly.

I try to tell my wife that, but will she listen?
My bad I think I meant 1:1 relationships...  ;)  1..1 is the directional multiplicity.  No wonder your wife is confused...   :-[  [1..1:1..1] => [1:1]
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

jamesjohn70

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: ERD - how to set total participation in ERD::ERD_Relationship
« Reply #13 on: March 18, 2018, 06:32:29 pm »
Try Diagram Properties/Connectors/top right: IDEF1X. No idea if that really helps.
Complete Guide About Cheap Car Insurance Quotes. Get Best Auto Insurance Quotes. Compare Insurance Companies in United States.