Results 1 to 5 of 5

Thread: Reverse engineer problem including only some tables in Oracle

  1. #1
    Join Date
    Jan 2010
    Location
    Mislata - Valencia - Spain
    Posts
    163

    Default Reverse engineer problem including only some tables in Oracle

    I think this is not an error, but seamless.
    This is an easy but important enhancement in reverse engineer.

    Make a reverse engineer in a large Oracle database with multiple schemas and include only some tables.
    If included tables has relations with not included tables an error occurs and all generated code is rollback.
    Obviously the related entity will not exists, but can generate in principal entity a single property (without relation).

    Somebody has same problem ?
    Mario Martínez Sánchez
    Project Manager & Software Architect
    --------------------------
    Disid Technologies S.L.
    http://www.disid.com
    --------------------------
    gvNIX
    http://gvnix.googlecode.com
    http://www.gvnix.org

  2. #2
    Join Date
    Jan 2010
    Location
    Mislata - Valencia - Spain
    Posts
    163

    Default

    Execution example:

    database reverse engineer --schema "AUM ADMIN" --package ~.domain --includeTables "TAUM_APLICACIONES TAUM_MODULOS TAUM_USUARIOS TAUM_USUMODULOS TAUM_APLUSU TCOM_APLICACIONES TCOM_LISTADOS TCOM_LISTADOS_CAMPOS"
    Updated SRC_MAIN_RESOURCES/dbre.xml
    Created SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin
    Created SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomAplicaciones.java
    Created SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListadosPK.java
    Created SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListados.java
    Created SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListadosCamposPK.java
    Created SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListadosCampos.java
    Undo create SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListadosCampos.java
    Undo create SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListadosCamposPK.java
    Undo create SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListados.java
    Undo create SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomListadosPK.java
    Undo create SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin/TcomAplicaciones.java
    Undo create SRC_MAIN_JAVA/es/gva/cit/aplusu/domain/admin
    Undo manage SRC_MAIN_RESOURCES/dbre.xml
    Foreign key table for foreign key 'FK_APLUSU_APLIC' in table 'ADMIN.TCOM_APLICACIONES' does not exist. One-to-one relationship not created
    Mario Martínez Sánchez
    Project Manager & Software Architect
    --------------------------
    Disid Technologies S.L.
    http://www.disid.com
    --------------------------
    gvNIX
    http://gvnix.googlecode.com
    http://www.gvnix.org

  3. #3
    Join Date
    Sep 2012
    Posts
    1

    Default

    Hi - I know this is late, but have you ever found a solution to this problem? I'm faced with a similar problem

  4. #4
    Join Date
    Dec 2012
    Posts
    2

    Default

    Still no solution for that?

    Got exactly the same problem and started to create the entity's manual, but would be quite happier with roo executing the dbre command, so i could always repeat the command in case of database changes.

  5. #5
    Join Date
    Dec 2005
    Posts
    935

    Default

    Rolling back is not specific to dbre and if it was to be prevented, it would have flow on effects for all add-ons. Using the --includeTables option is really useful for subsets of tables that contain their FK dependencies. I know it would be nice to be able to code the entity by hand in cases where some FK tables aren't included so perhaps raise a Jira improvement task for this.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •