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>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to