Book a Demo

Author Topic: Database Modeling - Logical and Physical  (Read 2312 times)

edwar64896

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Database Modeling - Logical and Physical
« on: November 03, 2005, 01:16:49 pm »
Am currently evaluating EA, so pls forgive newbie questions...

1. Previously used a database modelling tool that allowed the creation of a "logical' schema diagram" that would then autmoatically create a "physical" diagram containing all FK relationships and intermediate tables (for N:N joins) where necessary. Can EA do this, or do I have to manually create all FK relationships and intermediate tables?

2. Want to be able to create get_ and set_ methods for class entities automatically...

3. WAnt to be able to create persistence code for a database schema I am designing. At the moment, I don't seem to be able to create any code based on any "Table" stereotypes. EA tries to create the files, but they are all empty! Must be doing something wrong here... I'm lazy and just need a quick way of dumping out a persistence interface.

Tkx
Mark

thomaskilian

  • Guest
Re: Database Modeling - Logical and Physical
« Reply #1 on: November 04, 2005, 12:18:04 am »
Sorry, I'm no data modeller, but I'll try to give some hints:
Quote
1. Previously used a database modelling tool that allowed the creation of a "logical' schema diagram" that would then autmoatically create a "physical" diagram containing all FK relationships and intermediate tables (for N:N joins) where necessary. Can EA do this, or do I have to manually create all FK relationships and intermediate tables?

EA can assist you in doing that. You can transform a logical model (context menu Transform Current Package in Project View) into tables and maintain foreign keys (context menu for associations between tables). The help is fine so you can reproduce the steps.
Quote
2. Want to be able to create get_ and set_ methods for class entities automatically...
 
3. WAnt to be able to create persistence code for a database schema I am designing. At the moment, I don't seem to be able to create any code based on any "Table" stereotypes. EA tries to create the files, but they are all empty! Must be doing something wrong here... I'm lazy and just need a quick way of dumping out a persistence interface.

For that you need according classes which you can create from you logical model with another transformation (to e.g. C# or whatever). These classes can be augmented with get/set for the attributes (open their properties).

In the end you have a logical model from which you create tables and classes for persistence.