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

Austin Dorenkamp commented on OPENJPA-2366:
-------------------------------------------

My current thought for implementing this feature is to add a "useSchema" flag 
that will be set via command line {-useSchema = <true/false>}. With 
useSchema=false, the schema name for the @Table annotation will be excluded. 
However, useSchema will default to true if not specified so that it won't 
disrupt current OpenJPA users. UseSchema is different from useSchemaName as the 
latter only affects whether or not the schema name is included in the class 
name. I welcome any other thoughts and ideas regarding the implementation of 
this feature. 
                
> 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
>   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

Reply via email to