Ver Fonte

added a note about the usage of @XmlRoot (refs #176)

Johannes há 12 anos atrás
pai
commit
02328f1e0f
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      Resources/doc/reference/annotations.rst

+ 6 - 0
Resources/doc/reference/annotations.rst

@@ -277,6 +277,12 @@ Resulting XML:
         <name><![CDATA[Johannes]]></name>
     </user>
 
+.. note ::
+
+    @XmlRoot only applies to the root element, but is for example not taken into
+    account for collections. You can define the entry name for collections using
+    @XmlList, or @XmlMap.
+
 @XmlAttribute
 ~~~~~~~~~~~~~
 This allows you to mark properties which should be set as attributes,