Sorry, need to pay more attention. I added another create method on the bean class and used the ejb-create method tag (with the CompanyPhoneVO as an attribute). Is it the way to solve the problem, isn't it?
Altough, the reason why xdoclet is not generating the import java.util.Collection interface, i still don't know. Thanks, ltcmelo --- Leandro Melo <[EMAIL PROTECTED]> escreveu: > Hi, > when trying to generate VOs with the following code > > /** > * > * Returns the phone numbers of the PartyHouse > * > * @return <code>java.util.Collection</code> the > phone numbers > * > * @ejb.interface-method > * view-type="local" > * > * @ejb.relation > * name="Company-PhoneNumber" > * role-name="Company-has-PhoneNumber" > * target-ejb="CompanyPhone" > * target-role-name="PhoneNumber-is-from-Company" > * target-cascade-delete="yes" > * > * @jboss.target-relation > * fk-column="COMPANY_ID" > * related-pk-field="companyID" > * > * @ejb.value-object > * compose-name="CompanyPhones" > * compose="ltcmelo.valueobjects.CompanyPhoneVO" > * members-name="CompanyPhone" > * members="ltcmelo.cmp.CompanyPhoneLocal" > * relation="external" > * type="Collection" > * > */ > public abstract Collection getPhones(); > > > This is inside a bean Company, naturally, one > company > has more than one phone number (the reason for the > collection). > > In bean CompanyPhone, i got the setter and getter > method for the CompanyPhoneVO. > > After i generate classes, i have the following > problems. > - In Company bean, xdoclet generates code the calls > a > method "create()" on CompanyPhoneHome with the > argument CompanyVO, but i only have a "create()" > method > with separate properties in CompanyPhoneHome - > something like create(String phone, Integer > phoneID). > > Can anyone help me out ?????? > > > Also, when xdoclet generates the CompanyVO it > doesn't > import the Collection interface, what makes me to > import it manually all the time. > > Thanks in advance, > ltcmelo > - > > ______________________________________________________________________ > > Yahoo! Messenger - Fale com seus amigos online. > Instale agora! > http://br.download.yahoo.com/messenger/ > ===== beginner ______________________________________________________________________ Yahoo! Messenger - Fale com seus amigos online. Instale agora! http://br.download.yahoo.com/messenger/ ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user