[jira] Updated: (CAY-794) Abstract objEntities

From: Marcin Skladaniec (JIRA) ("Marcin)
Date: Sat Jul 05 2008 - 06:51:54 EDT

  • Next message: Andrus Adamchik: "Re: openbase testing"

         [ https://issues.apache.org/cayenne/browse/CAY-794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Marcin Skladaniec updated CAY-794:
    ----------------------------------

        Attachment: abstract-obj-entity.diff

    After a consultation with Andrus another small update to the patch: the attribute is stored in XML as "abstract" rather than "isAbstract" to archive constant naming pattern

    > Abstract objEntities
    > --------------------
    >
    > Key: CAY-794
    > URL: https://issues.apache.org/cayenne/browse/CAY-794
    > Project: Cayenne
    > Issue Type: New Feature
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Reporter: Ari Maniatis
    > Assignee: Ari Maniatis
    > Fix For: 3.0
    >
    > Attachments: ab.diff, abstract-complete.diff, abstract-obj-entity.diff
    >
    >
    > 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.

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Sat Jul 05 2008 - 06:52:20 EDT