You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Gokhan Ergul (JIRA)" <ji...@apache.org> on 2007/06/26 15:26:27 UTC
[jira] Updated: (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:all-tabpanel ]
Gokhan Ergul updated OPENJPA-239:
---------------------------------
Attachment: openjpa-revtool-ann.patch
Attached patch adds generating EJB 3.0 annotations feature to reverse mapping tool, enabled by -annotations flag.
Few implementation notes:
- The mechanism with which annotations are built follows xml metadata serialization scheme, in particular AnnotationPersistenceMetaDataSerializer and AnnotationPersistenceMappingSerializer closely resemble XMLPersistenceMetaDataSerializer and XMLPersistenceMappingSerializer. There's also a fair bit of code duplication among those classes, we might consider doing some refactoring there if you think it's worthwhile.
- I've tried to limit the number and impact of the changes on internal interfaces, which led to some rather awkward code at times --in particular how the annotation serializer gets invoked and its results are passed back to revmap tool. Any suggestions are welcome.
- I'm not sure about how to update the documentation, if anyone can point me in the right direction I can get it done.
> 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.