Hi all !
I am a little confused about the behaviour of the @ejb-value-object tag
which I'll explain by the following sample:
This works fine:
* @ejb.relation
* name="Activity-ParameterSet"
* role-name="Activity-has-ParameterSet"
* target-ejb="ParameterSet"
* target-role-name="ParameterSet-belongs-to-Activity"
* target-cascade-delete="yes"
* target-multiple="no"
*
* @jboss.target-relation
* fk-constraint="true"
* fk-column="parameterSetId"
* related-pk-field="id"
*
* @ejb.value-object
* compose="net.neobp.neo.pps.model.projects.ParameterSetValue"
* compose-name="ParameterSetValue"
* members="net.neobp.neo.pps.model.projects.ParameterSetLocal"
* members-name="ParameterSetValue"
* relation="external"
*
* @ejb.interface-method view-type="local"
*/
public abstract ParameterSetLocal getParameterSet();
/**
*
* @ejb.interface-method view-type="local"
*/
public abstract void setParameterSet(ParameterSetLocal
parameterSet);
BUT - actually - referring to the spec and the "using value objects"
document - the compose-name could be any descriptive string which
defines the accessors for this relation at the value-object
(ProjectValue), while the members-name defines the value object
accessors for the target-EJB. Thus this should work:
* @ejb.value-object
* compose="net.neobp.neo.pps.model.projects.ParameterSetValue"
* compose-name="AnyDescription"
* members="net.neobp.neo.pps.model.projects.ParameterSetLocal"
* members-name="ParameterSetValue"
* relation="external"
*
* @ejb.interface-method view-type="local"
*/
public abstract ParameterSetLocal get
AnyDescriptionParameterSet();
/**
*
* @ejb.interface-method view-type="local"
*/
public abstract void
setAnyDescriptionParameterSet(ParameterSetLocal parameterSet);
But obviously xdoclet uses the compose-name to access the target-EJB
(set / get VO) while it is not using members-name at all...???
Am I doing something wrong or has somebody the same observations???
Greetings
Arvin
NEO Business Partners GmbH
Germany
FON +49 (0) 511 123 549 - 0
FAX +49 (0) 511 123 549 - 49
Mobil +49 (0) 172 51 56 300
eMail: mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Website: http://www.NEO-Partners.com <http://www.neo-partners.com/>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user