hi francesco,

do you have any problems reading the HotelServiceDescription of a
HotelService ?
if not ,could you please mail me your sample ?

jakob

----- Original Message -----
From: "Marsoni Francesco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 06, 2001 6:06 PM
Subject: [castor-dev] Problem with REMOVE


> I have HotelService and HotelServiceDescription linked by 1:n relation.
> I execute the following code and get the HotelService deleted from db, but
> only one HotelServiceDescription (I have 2 linked with that service).
>
>        Enumeration result = (Enumeration)oql.execute();
>        if(result.hasMoreElements()) {
>          service = (HotelService)result.nextElement();
>          Iterator iter = service.getHotelServiceDescription().iterator();
>          while(iter.hasNext()) {
>            HotelServiceDescription desc =
> (HotelServiceDescription)iter.next();
>            service.removeHotelServiceDescription(desc);
> //           desc.setHotelService(null);
>            db.remove(desc);
>          }
>           db.remove(service);
>        }
>
> I have no problem with select, update and create.
> Any hint?
> Thx
> Francesco
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to