mirror of https://github.com/apache/openjpa.git
target-entity parse fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7bff3b4373
commit
c863a7a489
|
@ -1237,7 +1237,7 @@ public class XMLPersistenceMetaDataParser
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
String val = attrs.getValue("target-entity");
|
String val = attrs.getValue("target-entity");
|
||||||
if (val != null)
|
if (val != null)
|
||||||
fmd.setDeclaredType(classForName(val));
|
fmd.setTypeOverride(classForName(val));
|
||||||
assertPC(fmd, "OneToOne");
|
assertPC(fmd, "OneToOne");
|
||||||
fmd.setSerialized(false); // override any Lob annotation
|
fmd.setSerialized(false); // override any Lob annotation
|
||||||
if (!fmd.isDefaultFetchGroupExplicit())
|
if (!fmd.isDefaultFetchGroupExplicit())
|
||||||
|
@ -1251,7 +1251,7 @@ public class XMLPersistenceMetaDataParser
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
String val = attrs.getValue("target-entity");
|
String val = attrs.getValue("target-entity");
|
||||||
if (val != null)
|
if (val != null)
|
||||||
fmd.setDeclaredType(classForName(val));
|
fmd.setTypeOverride(classForName(val));
|
||||||
assertPC(fmd, "ManyToOne");
|
assertPC(fmd, "ManyToOne");
|
||||||
fmd.setSerialized(false); // override any Lob annotation
|
fmd.setSerialized(false); // override any Lob annotation
|
||||||
if (!fmd.isDefaultFetchGroupExplicit())
|
if (!fmd.isDefaultFetchGroupExplicit())
|
||||||
|
|
Loading…
Reference in New Issue