You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org> on 2007/06/26 21:36:25 UTC

[jira] Commented: (OPENJPA-239) Option for the reverse mapping tool to generate mapping annotations

    [ https://issues.apache.org/jira/browse/OPENJPA-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508300 ] 

Marc Prud'hommeaux commented on OPENJPA-239:
--------------------------------------------

I tried this out on the examples/reversemapping/ example (after building it with "mvn package" and then modifying examples/reversemapping/build.xml to have GenerateAnnotations="true" and chaning examples/META-INF/persistence.xml to not list the orm.xml file and instead enumerate all the persistent classes), and it appears to work. Great job!

I haven't had a chance to review the patch in detail yet, but the annotations in the generated code look good to me. One thing I notice is that when I run against the aforementioned example, a "orm.xml" file is till generated. Do you know why this is?

> Option for the reverse mapping tool to generate mapping annotations
> -------------------------------------------------------------------
>
>                 Key: OPENJPA-239
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-239
>             Project: OpenJPA
>          Issue Type: New Feature
>          Components: jdbc, jpa
>    Affects Versions: 0.9.0, 0.9.6, 0.9.7
>            Reporter: Marc Prud'hommeaux
>         Attachments: openjpa-revtool-ann.patch
>
>
> The reverse mapping tool currently only generates mappings in a separate orm.xml file. It would be useful if there was an option to instead generate annotations in the generated .java files.

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