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

Custom Class Generation Templates for Embeddables and DataMaps

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1, 4.2.M3
    • Component/s: cgen, Modeler
    • Labels:
      None
    • Flags:
      Important

      Description

      Customization of code generation templates is vitual for production-ready projects to apply appropriate file headers, meet coding guidelines, and for other reasons.

      Therefore Cayenne Modeler shall support selection of custom templates for generation Embeddables and DataMap Java classes, as it does for Object Entities.

      This requires enhancements storing DataMap specific settings.

       

      The attached patch provides a basic implementation of that feature (plus some minor bug-fixes) in Modeler as well as cgen. Other dependencies to cgen - if there are any - are not tackled. The coding style aims following present code although some parts (e.g. template or checkbox handling) could generalized.

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              sITo Stefan S.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: