Submitting the problem without giving the code where it stucks I guess I
made a mistake. I also added the code below. Sorry for this double
submit.
Criteria subCrit = new Criteria();
subCrit.addEqualTo("kartoteksId", id);
Query query = QueryFactory.newQuery(KartoteksImpl.class,
subCrit);
KartoteksImpl kartoteks =
(KartoteksImpl)broker.getObjectByQuery(query);
broker.retrieveAllReferences(kartoteks);
Thanks,
Sami Altundag
-----Original Message-----
From: Sami Altundağ [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 8:09 PM
To: [EMAIL PROTECTED]
Subject: Help--> circular reference stucks even when cache is used.
I am using rc5. Following configuration stucks on some records.
I used
ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl as
the object cache but it didnt solve the problem.
Any help is welcome.
Sami Altundag
<class-descriptor class="com.musteri.pos.KartoteksImpl"
table="KARTOTEKS" schema="KARTOTEKS" >
<field-descriptor name="KartoteksId" primarykey="true"
column="KARTOTEKSID" jdbc-type="BIGINT" autoincrement="true"/>
<collection-descriptor name="ChildIliskis"
element-class-ref="com.musteri.pos.IliskiImpl" auto-update="true"
auto-delete="true" auto-retrieve="false">
<inverse-foreignkey field-ref="ParentKId"/>
</collection-descriptor>
<collection-descriptor name="ParentIliskis"
element-class-ref="com.musteri.pos.IliskiImpl" auto-update="true"
auto-delete="true" auto-retrieve="false">
<inverse-foreignkey field-ref="ChildKId"/>
</collection-descriptor>
</class-descriptor>
<class-descriptor class="com.musteri.pos.IliskiImpl" table="ILISKI"
schema="KARTOTEKS" >
<field-descriptor name="IliskiID" primarykey="true"
column="ILISKIID" jdbc-type="BIGINT" autoincrement="true"/>
<field-descriptor name="ParentKId" column="PARENTKID"
jdbc-type="BIGINT"/>
<field-descriptor name="ChildKId" column="CHILDKID"
jdbc-type="BIGINT"/>
<!--
This part is in quota and doesnt affect the problem.
<reference-descriptor name="ParentKartoteks" proxy="true"
class-ref="com.musteri.pos.KartoteksImpl" auto-update="false"
auto-delete="false" auto-retrieve="true">
<foreignkey field-ref="ParentKId"/>
</reference-descriptor>
<reference-descriptor name="ChildKartoteks" proxy="true"
class-ref="com.musteri.pos.KartoteksImpl" auto-update="false"
auto-delete="false" auto-retrieve="true">
<foreignkey field-ref="ChildKId"/>
</reference-descriptor>
-->
</class-descriptor>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]