Here is an example.
It should be done with a finder really I guess but at least it gives you
an idea of how to use the select!
/**
* @ejb.interface-method view-type="local"
*/
public java.util.Collection getPeopleUnderAge(java.util.Date maxAge)
throws javax.ejb.FinderException {
return ejbSelectPeopleUnderAge(maxAge);
}
/**
* @ejb.select
* query="
* SELECT DISTINCT OBJECT(o)
* FROM Person o
* WHERE o.dateOfBirth > ?1
* "
* result-type-mapping="Local"
*/
public abstract java.util.Collection
ejbSelectPeopleUnderAge(java.util.Date date)
throws javax.ejb.FinderException;
-----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