Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1453

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1453
    Summary: Value objects don't work on composite with single valued relations
       Type: Bug

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
   Versions:
             1.2.3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Thomas Winkler

    Created: Thu, 30 Jun 2005 9:57 AM
    Updated: Thu, 30 Jun 2005 9:57 AM

Description:
Value objects don't use the correct method on relations as documented.

The code in the bean is like this:
    /**
     * @ejb.relation 
     *      name="this-that" role-name="this-has-that"
     *      target-cascade-delete="yes"
     *      target-ejb="example.interfaces.ThatEntity"
     *      target-role-name="that-belongsTo-this"
     */
    public abstract example.interfaces.ThatEntity getThatField();
    public abstract void setThatField(example.interfaces.ThatEntity that);

    /**
     * @ejb.value-object 
     *      compose="example.vo.ThatEntityVO" 
     *      compose-name="VOAccessThat"
     *      members="example.interfaces.ThatEntity"
     *      members-name="ThatVO" relation="external"
     * @ejb.interface-method
     */
    public example.interfaces.ThatEntity getThat() {
        return getThatField();
    }

    public void setThat(example.interfaces.ThatEntity that) {
        setThatField(that);
    }



In my opinion the CMP-Class should call the follwing method on the relation:
        relation.setThatVO(valueHolder.getVOAccessThat());

But the name of the compose-name is called instead:
        relation.setVOAccessThat(valueHolder.getVOAccessThat());

This could be fixed by modifying entity-value.xdt at two places, but I don't 
know, if this is really the result that the fields should create.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to