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

Abstract objEntities

    XMLWordPrintableJSON

Details

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

    Description

      Implement the possibility for an objEntity to be abstract. These means that the entity class generated by the template will be abstract.

      1. Add atttribute isAbstract within <obj-entity ...> in the Cayenne data map.
      2. Add checkbox to the modeler "[ ] abstract class"
      3. void setIsAbstract(boolean) and boolean getIsAbstract() added to ObjEntity.
      3. change template generation to add 'abstract' keyword

      Other changes (such as throwing runtime exception when querying abstract entity with no concrete subclasses) could probably wait until later since they need to be implemented as part of inheritance.

      Attachments

        1. ab.diff
          8 kB
          Marcin Skladaniec
        2. abstract-complete.diff
          12 kB
          Marcin Skladaniec
        3. abstract-obj-entity.diff
          11 kB
          Marcin Skladaniec

        Issue Links

          Activity

            People

              ari Ari Maniatis
              ari Ari Maniatis
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: