[XDoclet-JIRA] Assigned: (XDT-1397) Value-object composition doesn't work on n:1 relations

[email protected]
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Message:

   The following issue has been re-assigned.

   Assignee: Matthias Germann (mailto:[email protected])
---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1397

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1397
    Summary: Value-object composition doesn't work on n:1 relations
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             EJB Module
   Versions:
             1.2.3

   Assignee: Matthias Germann
   Reporter: Thomas Winkler

    Created: Tue, 10 May 2005 3:57 AM
    Updated: Sun, 14 Aug 2005 3:02 AM
Environment: JDK 1.4.2_08 on WinXP

Description:
Having an entity with a relation of type n:1 like the following doesn't work:

/**
 * @ejb.bean name="A" type="CMP" view-type="local" cmp-version="2.x"
 *
 */
public abstract class ABean implements EntityBean {
    /**
     * @ejb.interface-method
     * 
     * @ejb.relation role-name="a-has-b"
     *               name="a-b"
     * 
     * @ejb.value-object compose="test.vo.BVO"
     *                   compose-name="B" composes-name="Bs"
     *                   members="test.interfaces.BLocal"
     *                   members-name="Bs" relation="external"
     *                   match="*"
     */
    public abstract Collection getBs();
    
    /**
     * @ejb.interface-method
     */
    public abstract void setBs(Collection bs);
}

/**
 * 
 * @ejb.bean name="B" type="CMP" view-type="local" cmp-version="2.x"
 * 
 * @ejb.value-object name="B" match="*"
 *
 */
public abstract class BBean implements EntityBean {
    /**
     * @ejb.pk-field
     * @ejb.persistence
     */
    public abstract Integer getId();
    
    public abstract void setId(Integer id);
    
    /**
     *@ejb.interface-method
     * @ejb.relation role-name="b-belongsTo-a"
     *               name="a-b"
     */
    public abstract ALocal getA();
    
    /**
     * @ejb.interface-method
     */
    public abstract void setA(ALocal a);

    /**
     * @ejb.interface-method
     */
    public abstract BVO getBVO();
    
    /**
     * @ejb.interface-method
     */
    public abstract void setBVO(BVO bVO);
}


Following compile error occurs:
  [javac] D:\MyProjs\eclipse\workspace\XdocletTests\build\src-gen\test\ejb\ACMP.java:57: cannot resolve symbol
    [javac] symbol  : method create (test.vo.BVO)
    [javac] location: interface test.interfaces.BLocalHome
    [javac] test.interfaces.BLocal relation = home.create(added);
    [javac] ^
    [javac] 1 error


Actually I've no such method defined. Is this really necessary or may such a method be automaticly created?


---------------------------------------------------------------------
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 the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.