Book a Demo

Author Topic: Database Modeling in EA?  (Read 5133 times)

emaini

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Database Modeling in EA?
« on: October 24, 2003, 11:23:52 am »
Is there a way to do the following:
+ Import views, stored procedures, triggers, Oracle Packages
+ Generate DDL for Views, stored procedures, triggers, and Oracle Packages?

Are there any plans to follow the suggestions outlined by Scott Ambler at http://www.agiledata.org/essays/umlDataModelingProfile.html#Figure3Keys

I guess, given the present version of EA as designed today I would be able to model it using recommendations from above but there is no real way to generate the DDL

What are the plans to expand database modeling features?

siva_dc

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Database Modeling in EA?
« Reply #1 on: October 28, 2003, 08:13:38 am »
Hi,

We are also looking for the same features. Any idea when they will be available?

thanks
Siva

tfaucheux

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Database Modeling in EA?
« Reply #2 on: December 05, 2003, 08:26:10 am »
I'd like to see TABLE and COLUMN comments be added when they exist in ALL_TAB_COMMENTS and ALL_COL_COMMENTS.

I use the HTML generated documention a lot with Data Models...  Being able to click on the Table and see the descriptions would be a time saver.

I'd admit not a lot of people bother to add comments, but I mostly do this with Oracle Applications Tables.  
The meta data exists in other FND tables for table/column descriptions, as well as primary foreign key info.  (I created tables or materialized views that look identical to  ALL_CONSTRAINTS, ALL_CONS_COLUMNS, and the COMMENT views mentioned above, (in a seperate schema) to trick EA into thinking the information was really in the data dictionary.

Todd

tfaucheux

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Database Modeling in EA?
« Reply #3 on: January 06, 2004, 10:04:48 am »
Some other things that would be nice to have.

1) The ability to specify tablespace for foreign key indexes.  In the real world you typically seperate tables and indexes into seperate tablespaces.

Current DDL Generated:
------------------------------
ALTER TABLE ADVODM_DEADLINE_MANAGER ADD CONSTRAINT ADM_PK
PRIMARY KEY (DEADLINE_MANAGER_ID)
;

Desired With USING INDEX clause:
------------------------------------------
ALTER TABLE ADVODM_DEADLINE_MANAGER ADD CONSTRAINT ADM_PK
PRIMARY KEY (DEADLINE_MANAGER_ID)
USING INDEX TABLESPACE <INDEX_TABLESPACE>
;


2) When specifying a column as autonumber, I'd like to be able to change the name for the SEQUENCE it generates.

Right now it creates some funky names for sequences.

DROP SEQUENCE ADVODM_DEADLI_DEADLINE_MAN_SEQ;

A common convention is "<TABLE_NAME>_S".

At the moment, every time I generate, I have to go back and edit the source manually.

3) Can't seem to figure out how to create additional indexes.  Help file talks about adding an operation and stereo typing to INDEX, which is fine, but THEN you cannot select any columns other than the primary or foreign key columns.  I should be able to select other columns from the table, including multiple columns to create a concatenated index.  (Also Specifying tablespace would be usefull).

I work as a consultant, and would like to recommend EA as an alternative to Oracle Designer for data modelling, since it offers so much more.   With a little bit of tweaking it would be there.

Todd

peter

  • Guest
Re: Database Modeling in EA?
« Reply #4 on: February 05, 2004, 04:57:15 am »
Hi Todd,

we're trying to use EA as an alternative to Oracle Designer too.

Pavel Vlasov wrote a nice java library to read the XMI output from EA and use velocity template to generate code from it.

See  PAMDA at
http://www.pavelvlasov.com/pv/content/menu.show@id=products.pamda.html

for details or in the EA automation board :
http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi?board=Automation;action=display;num=1071248186

or search for PAMDA.

I added some examples how to generate Oracle stuff, which Pavel included in the 1.3.0 release.  A profile and some documentation will be available in the next weeks  hopefully. Until then everyone shouldn't hesitate to contact me. Ideas, critics and hints are highly appreciated.

Currently you have to read the templates to see which stereotypes and tagged values are used for generation.  I used some ideas by Ambler but added some ideas by my own, exspecially in the context of object relational features. I'm using object types and object views heavily in my projects.  If you need further help with the templates please feel free to contact me

regards
peter