Title: RE: select methods: special case?

Put a finder method on B and a business method on A.

a.getB() -> BHomeInterface.findByA(A_PK)

James

-----Original Message-----
From: Hans Schippers [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 16, 2003 4:37 AM
To: [EMAIL PROTECTED]
Subject: select methods: special case?


Hi,

Suppose I have a many-to-many CMR between EJB's A and B.

Suppose I have an instance a of A's Local Interface.

Suppose I need some B's associated with a (through a.getB()), but not all of them, only those of which some field equals some string.

What's the best way to do this?

Is it possible to write an ejbSelect method for this?

I guess finders are impossible, since they can only return A's Interfaces, not B's, and they are defined on the home interface, so I don't see how they could search in one particular instance of A.

Any ideas?

Thanks,

Hans

--
In a world without walls and fences, who needs windows and gates?

Is the essence that the light pulse lives longer?

Hans Schippers
1LIC INF
UIA 2002-2003

===========================================================================
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".

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from all computers.

Reply via email to