Je suis en train d'utiliser le printemps (@Autowire
annotation dans JAXB Modèle classe)héritage multiple dans EclipseLink Moxy
.....
@XmlAttribute(name = "object-id")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger objectId;
@XmlTransient
@Autowired MediationCacheManager cacheManager;
Où MediationCacheManager
est prolongée de trois interfaces
Lors de la création de JAXBContext i attraper un exception: Exception [EclipseLink-50089] (Eclipse Persistence Services - 2.5.0.v20121116-8650760): org.eclipse.persistence.exceptions.JAXBException Exception Description: The java interface com.netcracker.mediation.common.caches.api.MediationCacheManager can not be mapped by JAXB as it has multiple mappable parent interfaces. Multiple inheritence is not supported
Bien sûr, je comprends que EclipseLink ne supporte pas l'héritage multiple, mais comment puis-je sauter cacheManager
champ de JAXB En traitement? Quant à moi - il devrait être fait par XmlTransient
annotation mais son pas de travail. As-tu une idée?
Voir: http://stackoverflow.com/questions/17399333/xml-transient-not-working-jaxbmoxy –