mirror of https://github.com/apache/openjpa.git
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:
parent
4463c743f0
commit
7ae341d308
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue