Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1771

If possible DBRE addon shouldn't write catalog value in generated model

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.RELEASE
    • Fix Version/s: 1.1.1.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None
    • Environment:
      roo 1.1.1 jdk 1.6 nysql 5.1

      Description

      when I do database reverse engineer, I get in my java and aj generated classes the catalog value that matches the name of the database I reverse engineered.
      I think that's not ideal, because usually what I do is to parametrize database.properties so it's entries get replaced depending on maven build profile.

      So, for example, if I have db called my_db after DBRE I will have catalog="my_db" in java and aj files.

      Then if I execute CI build which uses my_test_db, hibernate will not pick it up and will try to create schema in my_db instead of my_test_db.

      Would it be possible to avoid writing catalog value in generated model?
      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              stewarta Alan Stewart
              Reporter:
              clandestino_bgd Milan Agatonovic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: