You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig L Russell (JIRA)" <ji...@apache.org> on 2014/02/14 18:08:21 UTC

[jira] [Commented] (JDO-728) extension element for @Index, @ForeignKey, @Unique, @PrimaryKey annotations are needed.

    [ https://issues.apache.org/jira/browse/JDO-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13901651#comment-13901651 ] 

Craig L Russell commented on JDO-728:
-------------------------------------

To test that the annotation is properly defined, we just need to add a test class with the annotations including the extension elements in the jdo-api test/java/javax/jdo/annotations directory.

When compiling the jdo-api project if the class compiles the annotation is correct.

Obviously, there cannot be a test for semantics.


> extension element for @Index, @ForeignKey, @Unique, @PrimaryKey annotations are needed.
> ---------------------------------------------------------------------------------------
>
>                 Key: JDO-728
>                 URL: https://issues.apache.org/jira/browse/JDO-728
>             Project: JDO
>          Issue Type: Improvement
>          Components: api, specification, tck
>    Affects Versions: JDO 3 update 1 (3.0.1)
>            Reporter: Baris ERGUN
>            Priority: Minor
>             Fix For: JDO 3 maintenance release 1 (3.1)
>
>         Attachments: JDO-728.patch
>
>
> JDO XSD for  XML MetaData supports extension tag. But  @Index does not have such elements. Ie I cannot specify @Index(members = {"sample"}, extension=......). Hope this will be included in new releases. The extension is used by ORM Frameworks in order to specify Index access method such HASH, GIST etc ... (these are postgresql specific)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)