Book a Demo

Author Topic: CHECK Constraint  (Read 2882 times)

Elham

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
CHECK Constraint
« on: January 28, 2009, 06:15:01 pm »
Hi
For Table in data model, how can i model Constaraint? In Constraint tab in table properties, or with Operation with stereotype CHECK??

Thanks
« Last Edit: January 28, 2009, 06:27:01 pm by Elham »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: CHECK Constraint
« Reply #1 on: January 28, 2009, 10:34:10 pm »
If it is a DDL constraint use model it as an operation. Use stereotypes, which can include others beyond just CHECK. This is documented, but you may have to look in different places for each type of constraint.
No, you can't have it!

Elham

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: CHECK Constraint
« Reply #2 on: January 28, 2009, 11:39:35 pm »
Quote
If it is a DDL constraint use model it as an operation. Use stereotypes, which can include others beyond just CHECK. This is documented, but you may have to look in different places for each type of constraint.

When I transfer my class diagram to DDL, EA transfer constraints from class to table. Then why should i use Operation?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: CHECK Constraint
« Reply #3 on: January 29, 2009, 05:21:23 am »
It is the way the data modeling profile works. The original profile was not developed by Sparx, so they are not the authors of your problem. In fact, AFAIK the profile framework was only published in draft form. Search the forum for commentary on this if you want, but the bottom line is that we will have to live with this, at least up to the current version of EA. Perhaps the future will bring something better.
No, you can't have it!