This examples comes for the middlegen sample dir...

   /**
    * @ejb.interface-method view-type="local"
    */
   public java.util.Collection getReservationsBefore(java.util.Date
date, airline.interfaces.FlightLocal flight) throws
javax.ejb.FinderException {
      return ejbSelectReservationsBefore(date, flight);
   }

   /**
    * @ejb.select
    *    query="
    *       SELECT DISTINCT OBJECT(reservation)
    *       FROM Flight flight, IN(flight.reservations) reservation
    *       WHERE reservation.registrationUtc = ?1 AND flight = ?2
    *    "
    *    result-type-mapping="Local"
    */
   public abstract java.util.Collection
ejbSelectReservationsBefore(java.util.Date date,
airline.interfaces.FlightLocal flight)
      throws javax.ejb.FinderException;


Tim
-----Original Message-----
From:   Michael Meyer [mailto:[EMAIL PROTECTED]
Sent:   Fri 28/11/2003 19:03
To:     [EMAIL PROTECTED]
Cc:     
Subject:        [Xdoclet-user] ejbSelect
Hi,

can anyone please post an example how I have to create
an ejbSelect query? 

I have to define the query at the top of the class but
do I have to put an abstract method to my class?

Regards

Michael

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

The information in this email is confidential and is intended solely for
the addressee. Access to this email by anyone else is unauthorised. 

If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, except for the purpose of delivery to the addressee, is prohibited
and may be unlawful. Kindly notify the sender and delete the message and
any attachment from your computer. 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to