Book a Demo

Author Topic: Sentencia INHERITS de Postgres con EA  (Read 3775 times)

euge17

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Sentencia INHERITS de Postgres con EA
« on: February 03, 2014, 05:38:50 pm »
Bueno disculpen pero no se escribir ni hablar mucho el ingles. La cuestion es que estoy modelando una base de datos con EA y usando postgreSQL; dentro de los diagramas tengo una Tabla "Persona" la cual posee campos que son comunes a muchas tablas, estas tablas heredan de Persona mendiante la sentencia INHERITS de SQL.

Bien, todo esta modelado en el diagrama respectivo, pero al momento de generar el DDL con EA, pues la clausula INHERITS no aparece en el archivo .sql. Asi que mi pregunta es: ¿Como usar la propiedad de INHERITS en EA?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Sentencia INHERITS de Postgres con EA
« Reply #1 on: February 04, 2014, 09:00:18 am »
Google Translate says:

Quote
Well sorry but not write or speak much English. The point is that I'm modeling a database and using postgreSQL EA; within diagrams have a table "Person" which has fields that are common to many tables, these tables inherit from Person by INHERITS SQL statement.

Okay, everything is modeled in the accompanying diagram, but when generating the DDL with EA, because INHERITS clause does not appear in the .sql file. So my question is: How to use the property INHERITS in EA?
« Last Edit: February 04, 2014, 09:42:03 am by KP »
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sentencia INHERITS de Postgres con EA
« Reply #2 on: February 04, 2014, 10:32:02 am »
I would model that with a generalization. But I doubt that the native DDL transformation will interpret that. So you are likely in the situation to modify the DDL script manually. Too long ago I last used it. It's probably possible but likely nothing you will enjoy.

q.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Sentencia INHERITS de Postgres con EA
« Reply #3 on: February 04, 2014, 02:59:59 pm »
Esto no es directamente compatible en el Transform script DDL - véase el último diagrama:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/model_transformation/ddltransformation.html
Sin embargo, usted puede tratar de hacer sus propias modificaciones en el DDL Transformar guión comprobando cómo se hace esto en un lenguaje orientado a transformar como C # y establecer los INHERITS esta manera. (Google Translate of below)
__________
This is not directly supported in the DDL Transform script - see the last diagram on:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/model_transformation/ddltransformation.html
However you can try to make your own modifications to the DDL Transform script by checking how this is done in an OO language transform like C# and set the INHERITS this way.