Book a Demo

Author Topic: Composite unique constraint  (Read 2414 times)

gledson

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Composite unique constraint
« on: September 01, 2005, 10:10:53 am »
Hi Everyone!

Is it possible create a composite unique constraint when modeling a data model in EA?


If I have a table with the columns (id, code, year, description) and  I mark the unique checkbox to columns code and  year, the EA generates the DDL with two uniques constraints but I want only one composite unique constraint.


Somebody knows how to make it?


Thanks,


Gledson Rabelo











hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Composite unique constraint
« Reply #1 on: September 01, 2005, 04:10:03 pm »
Open the table Operations dialog and create an operation with stereotype <unique>.

On the Columns tab, add the columns to it.

Henk