additional check for XmlRootElement annotation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David J. Wisneski 2007-08-15 18:40:47 +00:00
parent 4463c743f0
commit 7ae341d308
1 changed files with 2 additions and 1 deletions

View File

@ -170,7 +170,8 @@ public class AnnotationPersistenceXMLMetaDataParser {
private XMLMetaData parseXMLClassAnnotations() {
// check immediately whether the class has JAXB XML annotations
if (_cls == null || xmlTypeClass == null
|| !_cls.isAnnotationPresent(xmlTypeClass))
|| !(_cls.isAnnotationPresent(xmlTypeClass)
&& _cls.isAnnotationPresent(xmlRootElementClass)))
return null;
// find / create metadata