Reputation: 2859
I have no problem with converting ER to SQL tables, but I don't know how can I convert EER to SQL tables? as you Know that EER has "is a" specification and inheritance, but I don't know how relational databases can connect with inheritance specification
Upvotes: 0
Views: 3403
Reputation: 343
Simplest answer is:
The subtype table will use id of supertype as their id. This will guarantee subtype 'is a' supertype, instead of subtype 'is associated with' super type.
There are other rules for you to convert EERD generalization/specialization hierarchies (if you are interested, reply and I will send you a link to learn about all rules). However, most of the cases, following two rules are going to work
Hope this helps.
Upvotes: 0
Reputation: 1319
I'm not sure how to convert all the EER to SQL table in one user action, but this should work:
This will create the table.
Hope this helps.
Upvotes: 1
Reputation: 26392
I'd say look into the Hibernate storage strategies.
Hibernate is an ORM system that persists objects in an SQL database. In the link that I sent you it gives you a table schema for how the storage strategy is persisted in the SQL database.
If you use Appfuse or Groovy it can generate these relationships for you.
Then you might want to map the schema into a CASE tool of some sort to turn it into an Entity Relationship Diagram.
Upvotes: 0