You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Malinescu, Cristian" <Cr...@imagin-ag.de> on 2003/03/26 17:48:55 UTC
query-customizer sample ?
Hi
Is somewhere there a sample of using the "query-customizer" element for
"collection-descriptor" tag ?
Like for the next sample situation, where the "Collection getMyXs()" for
class Y can be filtered by
field "visible" ?
regards,
Cristian Malinescu
<class-descriptor
class="org.my.X"
...
<field-descriptor
name="Y_id"
column="Y_ID"
jdbc-type="BIGINT"
/>
<field-descriptor
name="visible"
column="VISIBLE"
jdbc-type="SMALLINT"
/>
...
</class-descriptor>
<class-descriptor
class="org.my.Y"
...
<collection-descriptor
name="myXs"
element-class-ref="org.my.X"
proxy="true"
>
<inverse-foreignkey field-ref="Y_id"/>
</collection-descriptor>
...
</class-descriptor>