I'm trying to use spring (@Autowire
annotation into Jaxb Model class)
.....
@XmlAttribute(name = "object-id")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger objectId;
@XmlTransient
@Autowired MediationCacheManager cacheManager;
Where MediationCacheManager
is extended from three interfaces
On creation of JaxbContext i catch an 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
Of course i understand that eclipselink doesn't support multiple inheritance but how can i skip cacheManager
field from Jaxb processing? As for me - it should be done by XmlTransient
annotation but its no work. Have u any idea?