[jboss-jira] [JBoss JIRA] (JBRULES-3318) Enable the Use of Different Table Names in drools-persistence-jpa
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Wed Jul 18 03:20:12 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706499#comment-12706499 ]
Geoffrey De Smet edited comment on JBRULES-3318 at 7/18/12 3:18 AM:
--------------------------------------------------------------------
>From my experience, the META-INF/orm.xml is indeed the way to do it: it can override any annotation in the code. Problem is they have to put it in the drools/jbpm-persistence-jpa.jar file AFAIK, so that's a PITA when upgrading to a new drools/jbpm version.
You might not want to use "xml-mapping-metadata-complete", as you don't want to disable all annotations in code. For example, disabling @Temporal(TemporalType.TIMESTAMP) and requiring them to rewrite it, is unnecessary duplication (and prone to bugs, especially when it changes in a new version).
If all they want to do is change the table names (not the column names), it could be just a list of @Table(tableName) overrides in the orm.xml file.
was (Author: ge0ffrey):
From my experience, the META-INF/orm.xml is indeed the way to do it: it can override any annotation in the code. Problem is they have to put it in the drools/jbpm-persistence-jpa.jar file AFAIK, so that's a PITA when upgrading to a new drools/jbpm version.
You might not want to use "xml-mapping-metadata-complete", as you don't want to disable all annotations in code. For example, disabling @Temporal(TemporalType.TIMESTAMP) and requiring them to rewrite it, is unnecessary duplication.
If all they want to do is change the table names (not the column names), it could be just a list of @Table(tableName) overrides in the orm.xml file.
> Enable the Use of Different Table Names in drools-persistence-jpa
> -----------------------------------------------------------------
>
> Key: JBRULES-3318
> URL: https://issues.jboss.org/browse/JBRULES-3318
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Jim Tyrrell
> Assignee: Marco Rietveld
> Fix For: FUTURE
>
>
> Customer is noticing a few table names that they would like to change out, ie use different ones. They also would like the table structure to match the naming conventions their organization employes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list