[jboss-dev-forums] [Design of JBossXB] - Collections with interfaces
scott.stark@jboss.org
do-not-reply at jboss.com
Sun Oct 21 00:24:33 EDT 2007
When I switched the EnterpriseBeansMetaData to extend AbstractMappedMetaData instead of AbstractMappedMetaData, the child elements are lost:
| @XmlType(name="enterprise-beansType")
| public class EnterpriseBeansMetaData
| extends AbstractMappedMetaData<IEnterpriseBeanMetaData>
| implements IEnterpriseBeansMetaData
| {
|
Its the implementations of IEnterpriseBeanMetaData that would have the annotations:
| @JBossXmlModelGroup(
| kind=JBossXmlConstants.MODEL_GROUP_CHOICE,
| particles={
| @JBossXmlModelGroup.Particle(element=@XmlElement(name="session"), type=SessionBeanMetaData.class),
| @JBossXmlModelGroup.Particle(element=@XmlElement(name="entity"), type=EntityBeanMetaData.class),
| @JBossXmlModelGroup.Particle(element=@XmlElement(name="message-driven"), type=MessageDrivenBeanMetaData.class)})
| public abstract class EnterpriseBeanMetaData extends NamedMetaDataWithDescriptionGroup
| implements Environment,
| IEnterpriseBeanMetaData
| {
|
How would I propagate this info up to the EnterpriseBeansMetaData class?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097231#4097231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097231
More information about the jboss-dev-forums
mailing list