Note that there are some explanatory texts on larger screens.

plurals
  1. POjaxb - strange problem
    primarykey
    data
    text
    <p>I have a super abstract class: </p> <pre><code>@XmlSeeAlso({AndQuery.class, OrQuery.class, NotQuery.class, PropertyQuery.class, MultiQuery.class}) @XmlRootElement public abstract class Query { </code></pre> <p>This class has a subclass:</p> <pre><code>public abstract class MultiQuery extends Query { </code></pre> <p>and this last super class has also two subclasses: AndQuery and OrQuery annotated with @XmlRootNode.</p> <p>I also have a PropertyQuery class which extends Query super class.</p> <p>All it's ok when i do a post like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt; &lt;orQuery&gt; &lt;query xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="propertyQuery"&gt; &lt;propertyName&gt;SenderContractNumber&lt;/propertyName&gt; &lt;propertyValue&gt;D*&lt;/propertyValue&gt; &lt;/query&gt; &lt;query xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="propertyQuery"&gt; &lt;propertyName&gt;SenderContractNumber&lt;/propertyName&gt; &lt;propertyValue&gt;A*&lt;/propertyValue&gt; &lt;/query&gt; &lt;query xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="andQuery"&gt; &lt;query xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="propertyQuery"&gt; &lt;propertyName&gt;documentNumber&lt;/propertyName&gt; &lt;propertyValue&gt;222&lt;/propertyValue&gt; &lt;/query&gt; &lt;query xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="propertyQuery"&gt; &lt;propertyName&gt;documentNumber&lt;/propertyName&gt; &lt;propertyValue&gt;222&lt;/propertyValue&gt; &lt;/query&gt; &lt;/query&gt; &lt;/orQuery&gt; </code></pre> <p>What i want is to POST an xml like this:</p> <pre><code>&lt;orQuyery&gt; &lt;query&gt;...&lt;/query&gt; &lt;andQuery&gt; &lt;query&gt;...&lt;/query&gt; &lt;/andQuery&gt; &lt;/orQuery&gt; </code></pre> <p>insteand of what i put above.</p> <p>Can you tell me please what i have to annotate because my OrQuery class expects to see only query nodes not and!</p> <p>Please help...</p> <p>Thanks a lot</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload