Hi, I'm assuming you are referring to the org.apache.openjpa.persistence.jdbc.Index annotation? Unfortunately, there is no defined mechanism for extending the syntax of the orm.xml files. Thus, the OpenJPA annotation extensions such as @Index are confined to the source code. The most likely solution is to provide an openjpa-specific xsd that extends the orm.xml.
This has been a known issue [1] for quite some time. It just hasn't risen in priority to take action on it yet. If you are able and willing to figure out a proper solution, I'm sure the community would be interested. Thanks, Kevin [1] https://issues.apache.org/jira/browse/OPENJPA-125 <http://openjpa.apache.org/builds/latest/docs/javadoc/org/apache/openjpa/persistence/jdbc/Index.html> On Fri, Jan 22, 2010 at 4:23 PM, Angelo K. Huang <[email protected]> wrote: > > Because our project has a package that is deployed as client, we don't want > to import openjpa in that package. Is there a way to put the Index > annotation in orm.xml and let orm.xml override the setting from > annotation(in this case, add index to the column)? > -- > View this message in context: > http://n2.nabble.com/Move-Index-to-orm-xml-tp4442826p4442826.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >
