Why do you not want it to be a finder method?

Cheers

-----Original Message-----
From: Ashutosh Gupta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 3:00 AM
To: [EMAIL PROTECTED]
Subject: How to Return Remote Objects through Businness methods in
Remote interface instead of Home interface


Hi All,

   I am trying an example of Bean Managed Persistance. I have an Employee
table, In this
table the columns are Id, Name, Add, ManagerID. ManagerId stores the Id of
employee
who is acting as manager for the current employee, making my table self
refrential.

Now using this strucure I am creating an entity bean. In my entity Bean I
want to define a
business method  getSubbordinates(), which should return an Enumeration of
all the entity
beans who are subbordinates of cuurent employee.

How can I tackle this problem. My getSubbordinates() method is some what
like finder
methods, but I want to define it in Remote interface as business method. In
finder method I
could handle it by returning Enumerarion of all IDs(Primary Key) having
their manager IDs
set to current ID. In turn the container would have return Remote Objects
for all the Entities
with those primary key. But how can I do it for my Business methods?

With thanks and Regards
Ashutosh Gupta

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to