Results 1 to 2 of 2

Thread: DBRE generates two java class for single table

  1. #1
    Join Date
    May 2010
    Posts
    9

    Default DBRE generates two java class for single table

    Hi,

    I am using Spring Roo 1.2.1 version, created entity file using below command,

    - database reverse engineer --schema "IS_TEST" --includeTables "IS_DIM" --package ~.shared.domain --activeRecord false

    it creates IsDim and IsDimPK file. Could you please let me know why it creates two files?

    Thanks,
    Riyaz

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

    Default

    IsDim is related to a table and IsDimPK is related to the multiple primary key of the same table.
    In the translation from relational database to object mapping this is required.
    *PK class not exists when a table has simple primary key.
    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

Posting Permissions

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