Book a Demo

Author Topic: Database modeling: support for sequences (Postgres  (Read 3044 times)

Robert Rohm

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Database modeling: support for sequences (Postgres
« on: December 15, 2004, 12:40:20 am »
Hi,

I am using EA 4.5 Corporate for database modeling, mainly with Postgres. Is there any way to have sequence created in the DDL automatically?

I use initial values like nextval(''issue_ID_seq""::text), thus I need the specified ID sequence. Generally, how can sequences represented in the data model?

Thanks in advance,
rrohm

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Database modeling: support for sequences (Post
« Reply #1 on: December 15, 2004, 05:28:25 am »
Hi,

there is no built in support for sequences, you could however use classes and assign them a stereotype such as <<sequence>>

Bruno

peter

  • Guest
Re: Database modeling: support for sequences (Post
« Reply #2 on: December 15, 2004, 05:40:47 am »
Hi,

don't know if it works for Postgress as well, but when using the "column properties" button in the attributes details dialog, you can choose to use "autonumber".

When selecting this checkbox and generating DDLs for Oracle, the code for the required Sequences and Trigger code for unsing the sequence uppon inserts will be created

cheers
peter

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Database modeling: support for sequences (Post
« Reply #3 on: December 15, 2004, 05:44:42 am »
I didn't know about this, that's pretty cool. Thanks Peter!