getting value-object to return Collection

"Kantner, Ted M" <[email protected]> Mon, 11 Dec 2006 13:57:29 -0500
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <EF8D308BE33AF54D8934DF26520252D305C80232@USTR-EXCH5.na.uis.unisys.com>
Hi,

We need @ejb.value-object to generate vo accessors that use Collection
typed parameters.  Currently we are seeing array types.  Any help
greatly appreciated!

Here is the current code:
	/**
	 * @return Collection
	 * @ejb.interface-method view-type="local"
	 * @ejb.value-object
       *   aggregate="com.myapp.ejb.entity.RuleDetailEntityValue" 
	 *   aggregate-name="RuleDetails"
	 *   members="com.myapp.ejb.entity.RuleDetailEntityLocal" 
       *   members-name="RuleDetailEntity"
	 *   relation="external"
	 * @ejb.relation name="Supplier-Detail" 
       *   role-name="Supplier-has-many-Details"
	 *   target-ejb="com.myapp.ejb.entity.RuleDetailEntity" 
       *   target-role-name="Rule-has-one-Supplier"
	 * @jboss.target-relation related-pk-field="supplierRuleId" 
       *   fk-column="supp_rule_id"
	 */
	abstract public Collection getRuleDetails();
   
This is the method currently generated with the array param:

public void
  setRuleDetailss(com.ghx.ci.flce.ejb.entity.RuleDetailEntityValue[] 
  RuleDetailss)

This is the signature that we require:

public void
  setRuleDetailss(Collection RuleDetailss)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV