Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-402

Entity/Attribute/Relationship naming improvements on reverse-engineering

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Undefined future
    • 3.0M5, 3.0
    • Core Library, Modeler
    • None

    Description

      Users should be given some flexibility when it comes to default names generated during reverse engineering. E.g. there were requests to automatically change plural form to singular ("product_groups" -> "ProductGroup"). There maybe other user-specific cases for transforming DB name to Java name.

      Suggested solution was to allow entering regex-based rules in the Modeler:

      http://objectstyle.org/cayenne/lists/cayenne-user/2005/11/0104.html

      Another related request suggested to have an option for naming relationships using attribute names instead of target entity names. This may also be one of the rules:

      http://objectstyle.org/cayenne/lists/cayenne-user/2005/11/0106.html

      Another suggestion by Cris - store the rules in DataMap for possible reverse engineering with Ant. This should allow model synching directly against the database (but would of course require a special Ant task)

      Attachments

        Activity

          People

            antidote Andrey Razumovsky
            andrus Andrus Adamchik
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: