db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michelle Caisse (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-403) JDO2 Annotations
Date Thu, 21 Jun 2007 19:16:28 GMT

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

Michelle Caisse updated JDO-403:
--------------------------------

    Attachment: embedded.patch

We had trouble with annotations for an embedded field (Address field in Company class). The
attached patch adds an EmbeddedField annotation and changes the field method of Embedded to:
    EmbeddedField[] embeddedFields() default {};

An example of usage is:
    @Embedded(nullIndicatorColumn="COUNTRY",
        embeddedFields={
            @EmbeddedField(name="addrid", column=@Column(name="ADDRID")),
            @EmbeddedField(name="street", column=@Column(name="STREET")),
            @EmbeddedField(name="city", column=@Column(name="CITY")),
            @EmbeddedField(name="state", column=@Column(name="STATE")),
            @EmbeddedField(name="zipcode", column=@Column(name="ZIPCODE")),
            @EmbeddedField(name="country", column=@Column(name="COUNTRY"))
    })
    private Address     address;

> JDO2 Annotations
> ----------------
>
>                 Key: JDO-403
>                 URL: https://issues.apache.org/jira/browse/JDO-403
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2
>    Affects Versions: JDO 2 final
>            Reporter: Andy Jefferson
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: embedded.patch, jdo_2_1_annotations.jar
>
>
> It would be desirable for JDO2 to have its own set of annotations. We have developed
a set within JPOX that would likely serve as a starting point for such a set. In my opinion
they should be
> 1. Split into javax.jdo.annotations.jdo and javax.jdo.annotations.orm
> 2. Move ORM attributes from some of the JDO annotations and have a ORM annotation.

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


Mime
View raw message