i decided not to use the relation mechanism of castor, but only the
persistency of objects without relations.
Though, i would want to use the db power of joins. I need to be able to make
my own joins in a query like

"select p from " + MyClass.class.geName() + 
" join my_hidden_relation_table " +   
"where p.id = my_x_table.id " +
"and my_x_table.container_id = " + containerID.

to select all related objects of containerID.
Castor has to treat the resultset just as if it was a select p from " +
MyClass.class.getName(): construct instances of MyClass. So the only "hack"
i need, is forcing my manual join into the sql statement being sent to the
db. Or use the OQLqueryImpl interface to add a join? 
Or could i use a nested select in the where clause ("where id in select id
from my_x_table where container_id = ...")?

Dieter Cailliau

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

Reply via email to