Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing JAXB with JgraphX?
    primarykey
    data
    text
    <p>I have some entities mapped with JAXB annotations to turn them into xml, but within those entities mxCell there is an object, how can I map this object without adding annotations in the code library JgraphX​​?</p> <p>There is my Objeto class:</p> <pre><code>@XmlRootElement @XmlAccessorType(XmlAccessType.NONE) @XmlSeeAlso({mxCell.class}) public abstract class ObjetoImpl implements Serializable, Objeto { @XmlAttribute protected String nome; @XmlAnyElement protected mxCell cell; @Override public String toString() { return this.nome; } } </code></pre> <p>It's give me the following exception:</p> <pre><code> com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions com.mxgraph.model.mxICell is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at com.mxgraph.model.mxICell at public com.mxgraph.model.mxICell com.mxgraph.model.mxCell.getParent() at com.mxgraph.model.mxCell at @javax.xml.bind.annotation.XmlSeeAlso(value=[class com.mxgraph.model.mxCell]) at ardis.model.conceitual.atributo.Atributo at protected java.util.List ardis.model.conceitual.ObjetoWithAttributeImpl.attributes at ardis.model.conceitual.ObjetoWithAttributeImpl at ardis.model.conceitual.entidade.Entidade at @javax.xml.bind.annotation.XmlSeeAlso(value=[class ardis.model.conceitual.entidade.Entidade]) at ardis.model.conceitual.ModeloConceitual </code></pre> <p>That exception occurs when the implementation of the interface is not correctly mapped with Jaxb, but i don't want enter into the jgraphx library and modify it</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.
 

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