Hi Vincent,

THANK YOU for the value object addition to XDoclet!  It is incredibly
useful!

I haven't touched anything beyond 1.1.2, but I'm wondering if there is
an enhancement addressing the following issue in the CVS code:  It
appears that for CMRs, XDoclet only considers the first @value-object
tag.

There appears to be no way for me to return "light" CMR value-object
when I get a "light" parent value-object, and "normal" CMR
value-objects when I get the "normal" parent value-object.  I currently
have to choose either "light" or "normal" for the CMR value objects to
return reguardless of what type of parent value-object I load.

Thanks,

Matt

-------------------
XDoclet ver 1.1.2
Sun JDK 1.3.1_03
OS  Win2000
-------------------



-------------------
Pre-XDoclet code
-------------------

    * @ejb:value-object name="Language" match="*" instantiation="eager"
extends="BaseValueObject"
    * @ejb:value-object name="LanguageNormal" match="normal"
instantiation="eager" extends="BaseValueObject"
    * @ejb:value-object name="LanguageLight" match="light"
instantiation="eager" extends="BaseValueObject"


    ...


    /**
     * @return ConfigurationValueDescriptionBeanLocal refs
     *
     *
     *
     * @ejb:value-object
     *       match="normal"
     *       type="Collection"
     *       relation="external"
     *       compose="vo.ConfigurationValueDescriptionNormalValue"
     *          
compose-name="ConfigurationValueDescriptionNormalValue"
     *       members="ConfigurationValueDescriptionBeanLocal"
     *           members-name="configurationValueDescription"
     *
     * @ejb:value-object
     *       match="light"
     *       type="Collection"
     *       relation="external"
     *       compose="vo.ConfigurationValueDescriptionLightValue"
     *           compose-name="ConfigurationValueDescriptionLightValue"
     *       members="ConfigurationValueDescriptionBeanLocal"
     *           members-name="configurationValueDescription"
     *
     * @ejb:interface-method view-type="local"
     * @ejb:relation
     *    name="configurationvaluedescription-language"
     *    role-name="language-has-many-configurationvaluedescriptions"
     *    cascade-delete="no"
     *
     */

    public abstract java.util.Collection
getConfigurationValueDescriptions();
    /**
     * @ejb:interface-method view-type="local"
     */
    public abstract void setConfigurationValueDescriptions(
    java.util.Collection configurationValueDescriptions);


----------------------
XDoclet result
----------------------

public class LanguageLightValue
   extends BaseValueObject
   implements java.io.Serializable
{
   static final long serialVersionUID = -308247471842677067L;

   private java.lang.Long entityId;
   ....
   private Collection ConfigurationValueDescriptionNormalValues = new
java.util.ArrayList();
   ....
}

----------------------
Conclusion
----------------------

I apprears that only the first @value-object tag is used.  What I
expected was that the LanguageLightValue would load
ConfigurationValueDescriptionLightValues and the LanguageNormalValue
would load ConfigurationValueDescriptionNormalValues.


Thanks for your help!




__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to