이 규칙은 persistence.xml 파일에서 openjpa.jdbc.Schema
구성 특성을 발견합니다.
이 특성은 XML 오브젝트 관련 맵핑 파일인 META-INF/orm.xml이나
persistence-unit의 mapping-file 요소로 정의된 맵핑 파일로
수동으로 마이그레이션해야 합니다.
기타 openjpa 및 wsjpa 구성 특성은
다른 규칙에 의해 플래그 지정됩니다.
다음 persistence.xml 파일에서는
property 요소가 이 규칙에 의해 플래그 지정됩니다.
<persistence>
<persistence-unit name="openjpa">
<mapping-file>orm.xml</mapping-file>
<properties>
...
<property name="openjpa.jdbc.Schema" value="EJB30"/>
...
</properties>
</persistence-unit>
</persistence>
이 특성 값을 맵핑 파일의 schema 요소로 마이그레이션하십시오.
다음 예는 orm.xml 맵핑 파일의 마이그레이션된 특성 값을 보여줍니다.
기본 META-INF/orm.xml 파일을 사용 중이 아닌 경우, persistence.xml
파일에서 영향을 받는 persistence-unit마다 mapping-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>