Hello all!
I'm using OJB, and want to load all InventaireTable of a TransportFiche where the
InventaireTable.typeVisiteDossier=2
to do this I use the attribute tag using : <attribute
attribute-name="typeVisiteDossier" attribute-value="2"/>. But OJB load all
InventaireTable of the TransportFiche including typeVisiteDossier=1. I think the
repository.xml is bad configured or the attribute
tag was created to do this. I don't know what is wrong. Could someone help me please.
Fragment of the repository.xml:
<!-- Definitions for com.mps.safari.gestion.TransportFiche -->
<class-descriptor class="com.mps.safari.gestion.TransportFiche" table="trajet">
<field-descriptor id="1" name="id" column="TRAJET_ID" jdbc-type="BIGINT"
primarykey="true" autoincrement="true"/>
...
<collection-descriptor name="inventaires"
element-class-ref="com.mps.safari.gestion.InventaireTable">
<inverse-foreignkey field-ref="codeVisiteDossier"/>
<attribute attribute-name="typeVisiteDossier" attribute-value="2"/>
</collection-descriptor>
</class-descriptor>
<!-- Definitions for com.mps.safari.gestion.InventaireTable -->
<class-descriptor class="com.mps.safari.gestion.InventaireTable" table="inventaire">
<field-descriptor id="1" name="id" column="INVENTAIRE_ID" jdbc-type="BIGINT"
primarykey="true" autoincrement="true"/>
...
<field-descriptor id="3" name="typeVisiteDossier" column="TYPE_VISITE_DOSSIER"
jdbc-type="INTEGER"/>
<field-descriptor id="4" name="codeVisiteDossier" column="CODE_VISITE_DOSSIER"
jdbc-type="BIGINT"/>
...
</class-descriptor>
------------------------------------------
Faites un voeu et puis Voila ! www.voila.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]