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

Custom Class Generation Templates for Embeddables and DataMaps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1
    • 4.1.1, 4.2.M3
    • cgen, Modeler
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: