[JIRA] Closed: (CAY-455) JPA Mapping Descriptor bean and XML loader for it

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Thu Feb 07 2008 - 07:33:33 EST

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Closed: (CAY-793) svn tags/r-1-1-4 tag and branches/STABLE-1.1 missing ImportDBAction.java"

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

    Andrus Adamchik closed CAY-455.
    -------------------------------

    > JPA Mapping Descriptor bean and XML loader for it
    > -------------------------------------------------
    >
    > Key: CAY-455
    > URL: https://issues.apache.org/cayenne/browse/CAY-455
    > Project: Cayenne
    > Issue Type: Task
    > Components: Cayenne JPA
    > Affects Versions: JPA 1.0
    > Reporter: Andrus Adamchik
    > Assignee: Andrus Adamchik
    > Fix For: JPA 1.0
    >
    >
    > JPA spec defines a schema for the entity mapping descriptor (aka orm.xml). We need to handle it. I see the following subtasks involved:
    > 1. Create a class that is able to store all information defined in the schema (even if some fields currently have no analogues in Cayenne). This class does not depend on cayenne core, so it should be placed in "org.objectstyle.cayenne.jpa"
    > 2. Create a loader from XML. Use Cayenne XMLDecoder if possible?
    > 3. Create a converter between orm.xml descriptor class and DataMap.
    > Note: another way to load an ORM descriptor bean is by inspecting managed class annotations (CAY-456). Note that XML descriptor infor overrides annotations, so the loader should be able to work with an existing desctiptor, updating it from XML data.
    > A quote from spec:
    > "The XML descriptor is intended to serve as both analternative and an overriding mechanism
    > to the use of Java language metadata annotations."

    -- 
    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 : Thu Feb 07 2008 - 07:34:00 EST