Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- 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: xdoclet-devel (Use for new issues) Reporter: Thomas Winkler Created: Tue, 10 May 2005 3:57 AM Updated: Tue, 10 May 2005 3:57 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); /** [EMAIL PROTECTED] * @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 ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel