tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PALLUEL Sylvie" <sylvie.pall...@cnamts.fr>
Subject RE : Castor doclet and ArrayList
Date Mon, 17 Feb 2003 10:00:34 GMT
Oups ... sorry ... I 'm not in the right list !!!

___________________
CREDI RA
Sylvie Palluel

sylvie.palluel@cnamts.fr
___________________


> -----Message d'origine-----
> De : PALLUEL Sylvie [mailto:sylvie.palluel@cnamts.fr]
> Envoyé : lundi 17 février 2003 10:49
> À : 'Tomcat Users List'
> Objet : Castor doclet and ArrayList
> 
> Hello,
> 
> I'm a newbie in Castor. And I'm using  castor doclet to generate my
> mapping
> file. The databases used are mySql and Oracle8i/9i.
> 
> In the doclet's documentation I've found One to One Relationship
example,
> but nothing about One to N.
> 
> My class scapin.donnees.assures.Assure  has an attribute
>   // This is a collection of scapin.donnees.demandes.Demande
>   private java.util.Collection lesDemandes = new ArrayList();
> 
> and the getter/setter methods
> 
>   public Collection  getLesDemandes() {
>     return lesDemandes;
>   }
>   public void  setLesDemandes(Collection lesDemandes) {
>     this.lesDemandes = lesDemandes;
>   }
> 
> Which doclet tags can I use for my attribute ?
> Or have I to manually modify my mapping.xml file (and with which
> informations )  ?
> 
> I have tried this :
>     <field name="lesDemandes" type="scapin.donnees.demandes.Demande"
> collection="collection">
>       <bind-xml name="lesDemandes" />
>     </field>
> 
> How has to be defined my attribute lesDemandes in my database create
> schema
> ?
> 
> 
> Thanks for your help.
> 
> Sylvie.
> ___________________
> CREDI RA
> Sylvie Palluel
> 
> sylvie.palluel@cnamts.fr
> ___________________
> 
> 
> 
> 
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message