Re: ArrayIndexOutOfBoundsException in PersistenceBrokerAbstractImpl

2006-02-10 Thread Armin Waibel
Hi Phil, DiCorpo, Phillip wrote: I'm using ODMG and OJB 1.0.4. Any reason why I would be seeing the following exception? Looking at the code I could only see this possibly happening if more than one thread is accessing the array of temporateStateListeners. Thanks in advance for the help, I

Re: TwoLevelCache troubles and get the running transaction

2006-02-10 Thread Armin Waibel
Hi Bruno, Bruno CROS wrote: Hi all, hi Armin, Using TwoLevelCacheObjectImpl, i experienced some big troubles with a delete sequence containing some flush() to avoid FK constraints errors. Assume 2 classes A and B, with 1:n relation. We can resume sequence as this : - open tx - read objec

Re: howto query this

2006-02-10 Thread Jakob Braeuchi
hi hans, please try the following count-query: Criteria crit = new Criteria(); crit.addEqualTo("phoneNumber.rftelco.rftelcoId", new Integer(65)); broker.getCount(query); the generated sql for hsqldb looks like this: SELECT count(*) FROM CALLS A0 INNER JOIN PHONE_NUMBER A1 ON A0.PHONE_NUMBER_I

Speed issues

2006-02-10 Thread Milisic Aleksandar
Hi, I was just wondering if somebody could tell me what are the general techniques used when performing writes and reads to optimize the performance (speed wise) of OJB? Or is anything said about it in the documentation (I am having trouble finding it)? The reason I am asking is because I am doi

Re: Retrieving collections when FK is a VARCHAR

2006-02-10 Thread Jakob Braeuchi
hi alessandro, relationships based on non primarykey fields are supported in ojb 1.x but not in 1.0.x. hth jakob Alessandro Vincelli schrieb: Thanks, I have already answered you on JIRA, this is a problem in database design, Therefore, Can I use a fk connected to a field not PK but only u

TwoLevelCache troubles and get the running transaction

2006-02-10 Thread Bruno CROS
Hi all, hi Armin, Using TwoLevelCacheObjectImpl, i experienced some big troubles with a delete sequence containing some flush() to avoid FK constraints errors. Assume 2 classes A and B, with 1:n relation. We can resume sequence as this : - open tx - read object A - read collection of object

MAPPING BIDIRECTIONAL NAVIGATION 1:1 ??? ojb 1.0.3

2006-02-10 Thread ABOU LINA
Hi, i give you this sample example : in case A<>B [1:n] : the mapping of this bidiractional navigation is guaranted by the use of inverse-foreignkey : Mapping A classe : Mapping B class : --

Re: Retrieving collections when FK is a VARCHAR

2006-02-10 Thread Alessandro Vincelli
Thanks, I have already answered you on JIRA, this is a problem in database design, Therefore, Can I use a fk connected to a field not PK but only unique? Alessandro Jakob Braeuchi ha scritto: hi alessandro, could you please set a breakpoint in PlatformDefaultImpl#setObjectForStatement at