openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Austin Dorenkamp (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OPENJPA-2366) provide option to exclude schema name from generated @Table annotation for generated entities
Date Tue, 06 Aug 2013 20:58:49 GMT

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

Austin Dorenkamp updated OPENJPA-2366:
--------------------------------------

    Attachment: OPENJPA-2366doc.patch
                OPENJPA-2366.patch

This patch deals with the ReverseMappingTool and associated classes. The added code creates
the option for users to exclude the schema name (via a command line flag: "-useSchemaElement")
from the @Table annotation in the .java files generated for each table that is being mapped.
The schema name will also be removed from the corresponding XML mapping file(s) (i.e., orm.xml)
that are generated by the tool. The initialized value for "useSchemaElement" is true in order
to preserve backwards compatibility.

I am requesting a review so that these changes can be incorporated into future Apache OpenJPA
releases.
                
> provide option to exclude schema name from generated @Table annotation for generated
entities
> ---------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2366
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2366
>             Project: OpenJPA
>          Issue Type: New Feature
>          Components: jpa
>    Affects Versions: 2.2.0, 2.2.1
>            Reporter: John Mysak
>            Assignee: Austin Dorenkamp
>            Priority: Minor
>         Attachments: OPENJPA-2366doc.patch, OPENJPA-2366.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Feature request:
> Provide an option for org.apache.openjpa.jdbc.meta.ReverseMappingTool that will exclude
the schema name for the @Table annotation on generated entities.  For example, if the schema
name is not required and needs to be dynamically specified at deployment time via openjpa.jdbc.Schema.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message