multiple ejb.value-object tags cause match="*" to create duplicate 
object/method definitions 
---------------------------------------------------------------------------------------------

         Key: XDT-1584
         URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1584
     Project: XDoclet
        Type: Bug
  Components: XDoclet Module  
    Versions: 1.2.3    
 Environment: linux 2.6.x,
ant 1.6.5,
jdk 1.5.06

 Reporter: Anil Mahajan
 Assigned to: xdoclet-devel (Use for new issues) 



The situation revolves around creating multiple value objects off of the same 
entity bean.  In this case, 4 value objects.  A light object that includes only 
local properties, a second that includes local + a subset of the related 
entities, a third that contains the second + a few more related entities, and a 
fourth which is match="*".

Under xdoclet 1.2.2 this works fine.  Under 1.2.3 the following type of 
fragment gives problems:

/**
 * ...
 * @ejb.relation ...
 * @ejb.value-object
 *   aggregate="..."
 *   aggregate-name="Modifier"
 *   members="..."
 *   members-name="Modifier"
 *   relation="external"
 *   type="java.util.Collection"
 *   match="full"
 * @ejb.value-object
 *   aggregate="..."
 *   aggregate-name="Modifier"
 *   members="..."
 *   members-name="Modifier"
 *   relation="external"
 *   type="java.util.Collection"
 *   match="medium"
 * @jboss.relation-mapping style="foreign-key"
 */
public ...

We generate the 4 value objects (light, medium, full, complete).  For some 
reason, however, after upgrading to xdoclet 1.2.3, the match="*" value object 
contains duplicates of the 'Modifier' Collection and related methods.  This 
prevents the object from compiling.






-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to