Hi,

I have a class with one-to-many relation: ebatch ----> dataobject (with
ebatch containing a collection of dataobject).

I would like to retrieve an given ebatch and only a subset of dataobject
linked to it, having for example a given status.

Here is the situation:

relation is:
----------  1   n  -------------
-- ebatch   ---->  dataobject --
--------------------------------

database entry are
--------------------------------------------
-- ebatch           dataobject           
-- oid              oid ebacthoid status
--------------------------------------------
-- 10               1   10        AAA
--                  2   10        AAA
--                  3   10        BBB
--                  4   10        BBB
--------------------------------------------

What is the OQL query to retrieve ebatch:10 with a dataObject collection
having only [(3,10,BBB),(4,10,BBB)]

Thanks for your answer.

Yvan Hess

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

Reply via email to