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:
A. Abram White 2006-09-13 20:35:15 +00:00
parent 7bff3b4373
commit c863a7a489
1 changed files with 2 additions and 2 deletions

View File

@ -1237,7 +1237,7 @@ public class XMLPersistenceMetaDataParser
throws SAXException {
String val = attrs.getValue("target-entity");
if (val != null)
fmd.setDeclaredType(classForName(val));
fmd.setTypeOverride(classForName(val));
assertPC(fmd, "OneToOne");
fmd.setSerialized(false); // override any Lob annotation
if (!fmd.isDefaultFetchGroupExplicit())
@ -1251,7 +1251,7 @@ public class XMLPersistenceMetaDataParser
throws SAXException {
String val = attrs.getValue("target-entity");
if (val != null)
fmd.setDeclaredType(classForName(val));
fmd.setTypeOverride(classForName(val));
assertPC(fmd, "ManyToOne");
fmd.setSerialized(false); // override any Lob annotation
if (!fmd.isDefaultFetchGroupExplicit())