我正在尝试使用 spring(@Autowire
注释到 Jaxb Model 类中)
.....
@XmlAttribute(name = "object-id")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger objectId;
@XmlTransient
@Autowired MediationCacheManager cacheManager;
MediationCacheManager
从三个接口扩展在哪里
在创建 JaxbContext 时,我捕获了一个异常:
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
当然,我知道 eclipselink 不支持多重继承,但是如何cacheManager
从 Jaxb 处理中跳过字段?至于我 - 它应该通过XmlTransient
注释来完成,但它不起作用。你有什么想法吗?