This rule detects the openjpa.jdbc.Schema configuration
property in the persistence.xml file.
This property must be manually migrated to the XML object-relational mapping file,
META-INF/orm.xml, or to the mapping file
defined by the mapping-file element for the persistence-unit.
Other openjpa and wsjpa configuration properties are flagged by a
different rule.
In the following persistence.xml file,
the property element is flagged by this rule.
<persistence>
<persistence-unit name="openjpa">
<mapping-file>orm.xml</mapping-file>
<properties>
...
<property name="openjpa.jdbc.Schema" value="EJB30"/>
...
</properties>
</persistence-unit>
</persistence>
Migrate this property value to the schema element in the mapping file.
The following example shows the migrated property value in a
orm.xml mapping file.
If you are not using the default META-INF/orm.xml file, define a mapping-file element
for each affected persistence-unit in your persistence.xml file.
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
version="2.0">
<persistence-unit-metadata>
<persistence-unit-defaults>
<schema>EJB30</schema>
</persistence-unit-defaults>
</persistence-unit-metadata>
</entity-mappings>