RE : 1:1 navigable && EmptyCache bug
Hi Edson, I apologize; I wanted to say in the collection-descriptor. Each time I have a Foreign Key reference in the reference_descriptor I have an inverse Foreign Key in a collection descriptor. Maybe I'm wrong...I thought you all time oblige to have a collection descriptor in such case Here : -Message d'origine- De : Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Envoyé : jeudi 30 octobre 2003 13:14 À : OJB Users List Objet : Re: 1:1 navigable && EmptyCache bug Can you explain a bit more? I never seen inverse foreign keys in references... How this apply in sample XML bellow? - Original Message - From: Emmanuel Dupont To: 'OJB Users List' Sent: Thursday, October 30, 2003 4:59 AM Subject: RE : 1:1 navigable && EmptyCache bug Is it because you don't have any Inverse_foreignkey in your reference descriptor ? -Message d'origine- De : Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Envoyé : mercredi 29 octobre 2003 23:37 À : 'OJB Users List' Objet : 1:1 navigable && EmptyCache bug Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1:1 navigable && EmptyCache bug
Yes, I've done this yesterday, and it works. Thanks for the tip. Edson Richter - Original Message - From: Gerhard Grosse To: [EMAIL PROTECTED] Sent: Thursday, October 30, 2003 5:04 AM Subject: Re: 1:1 navigable && EmptyCache bug Hi Edson, I think with EmptyCache OJB cannot detect loops in your object relations, because it does not maintain object identity. I'm afraid you need to use some non-empty cache implementation or remove the back-reference that causes the loop. hth Gerhard On Wed, 29 Oct 2003 19:36:59 -0300, "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> wrote: >Hi! > >If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. >The problem appear in the following piece of XML: > >class="com.acme.People" > proxy="dynamic" > schema="ABC" > table="PEOPLE"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true" /> >name="otherInfo" >proxy="false" >auto-retrieve="true" >auto-update="true" >auto-delete="true" >class-ref="com.acme.OtherInfo"> > > > >class="com.acme.OtherInfo" > schema="ABC" > table="OTHER_INFO"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true"/> >name="people" >proxy="true" >class-ref="com.acme.People"> > > > > > > >Edson Richter >Hi! > >If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. >The problem appear in the following piece of XML: > >class="com.acme.People" > proxy="dynamic" > schema="ABC" > table="PEOPLE"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true" /> >name="otherInfo" >proxy="false" >auto-retrieve="true" >auto-update="true" >auto-delete="true" >class-ref="com.acme.OtherInfo"> > > > >class="com.acme.OtherInfo" > schema="ABC" > table="OTHER_INFO"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true"/> >name="people" >proxy="true" >class-ref="com.acme.People"> > > > > > > >Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003
Re: 1:1 navigable && EmptyCache bug
Can you explain a bit more? I never seen inverse foreign keys in references... How this apply in sample XML bellow? - Original Message - From: Emmanuel Dupont To: 'OJB Users List' Sent: Thursday, October 30, 2003 4:59 AM Subject: RE : 1:1 navigable && EmptyCache bug Is it because you don't have any Inverse_foreignkey in your reference descriptor ? -Message d'origine- De : Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Envoyé : mercredi 29 octobre 2003 23:37 À : 'OJB Users List' Objet : 1:1 navigable && EmptyCache bug Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1:1 navigable && EmptyCache bug
Hi Edson, I think with EmptyCache OJB cannot detect loops in your object relations, because it does not maintain object identity. I'm afraid you need to use some non-empty cache implementation or remove the back-reference that causes the loop. hth Gerhard On Wed, 29 Oct 2003 19:36:59 -0300, "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> wrote: >Hi! > >If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to >infinite loop trying to load the references. >The problem appear in the following piece of XML: > >class="com.acme.People" > proxy="dynamic" > schema="ABC" > table="PEOPLE"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true" /> >name="otherInfo" >proxy="false" >auto-retrieve="true" >auto-update="true" >auto-delete="true" >class-ref="com.acme.OtherInfo"> > > > >class="com.acme.OtherInfo" > schema="ABC" > table="OTHER_INFO"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true"/> >name="people" >proxy="true" >class-ref="com.acme.People"> > > > > > > >Edson Richter >Hi! > >If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to >infinite loop trying to load the references. >The problem appear in the following piece of XML: > >class="com.acme.People" > proxy="dynamic" > schema="ABC" > table="PEOPLE"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true" /> >name="otherInfo" >proxy="false" >auto-retrieve="true" >auto-update="true" >auto-delete="true" >class-ref="com.acme.OtherInfo"> > > > >class="com.acme.OtherInfo" > schema="ABC" > table="OTHER_INFO"> >name="peopleId" >column="PEOPLE_ID" >jdbc-type="INTEGER" >primarykey="true"/> >name="people" >proxy="true" >class-ref="com.acme.People"> > > > > > > >Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : 1:1 navigable && EmptyCache bug
Is it because you don't have any Inverse_foreignkey in your reference descriptor ? -Message d'origine- De : Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Envoyé : mercredi 29 octobre 2003 23:37 À : 'OJB Users List' Objet : 1:1 navigable && EmptyCache bug Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
1:1 navigable && EmptyCache bug
Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: Edson Richter