Collection creation and sorting

2004-04-30 Thread Tino Schöllhorn
Hi, I have a (probably simple) question about sorting collections: I have 3 classes which I successfully mapped to OJB: class Company { Collection companyTeams; public Collection getTeams() { //??? } } class CompanyTeam { Company c; Team t; int pos; } class Team { String

[JDO] Can I use a proxy with the JDO implementation ?]

2004-04-30 Thread Alexandre BOISSEAU
Hi, I have to deal with large objects with OJB and I sense I will get into trouble with some performance issues if data is loaded each time objects are created. I saw some examples using the org.apache.ojb.broker.VirtualProxy class but I dont manage to Anybody having had such experience?

RE: Collection creation and sorting

2004-04-30 Thread Gelhar, Wallace Joseph
Hi Tino, Sure you can do this. An example: class-descriptor class=BuildingImpl table=tblPlnBuilding ... collection-descriptor name=rooms element-class-ref=RoomImpl orderby name=roomNo sort=ASC / orderby name=roomSuffix sort=DESC / inverse-foreignkey

Re: [JDO] Can I use a proxy with the JDO implementation ?]

2004-04-30 Thread Brian McCallister
Proxies are configured in the repository metadata: http://db.apache.org/ojb/repository.html =) -Brian On Apr 30, 2004, at 3:52 AM, Alexandre BOISSEAU wrote: Hi, I have to deal with large objects with OJB and I sense I will get into trouble with some performance issues if data is loaded each

ant perf-test does not work properly in RC6 with Oracle9i

2004-04-30 Thread Herkendell, Wolfram
Hi, being completely new to OJB I first tried to set up V1.0 RC6 and ran ant perf-test successfully against the built in HSQL database. As the intended target database is Oracle 9i in a second step I changed the profile to be used to oracle9i in file build.properties. It is not possible to

Re: ant perf-test does not work properly in RC6 with Oracle9i

2004-04-30 Thread Armin Waibel
Hi Wolfram, it seems to be a torque problem. The tables creation failures only affect tables used in the junit test suite, they are not necessary to run the 'perf-test' target (I assume no liability ;-)) So you should be able to run perf-test anyhow [torque-sql-exec] Failed to execute: ALTER

query on inherited references

2004-04-30 Thread CLEMENT Alexandre GC EUR
hi, I have a question for OJB experts: Is it possible to query with criteria that navigate through inherited (possibly polymorphic) references? It seems not because I have to redeclare all inherited reference in subtypes to make these queries work. I am facing problems with inherited references

Re: clear() collection proxy RemovalAware

2004-04-30 Thread Jakob Braeuchi
hi edson, armin, i checked it in. jakob Jakob Braeuchi wrote: hi edson, armin, imo the correct fix is as follows: .. // ECER: assure it will notify all being removed, necessary for RemovalAware classes... if (isLoaded()) { getData().clear(); } ..

Re: clear() collection proxy RemovalAware

2004-04-30 Thread Armin Waibel
Hi Jakob, I'm not sure if this will solve the problem with removal aware list implementation, because removal aware list only recognise loaded objects. If clear was called on the proxy and data was not loaded the objects will not be passed to the removal aware list. So load data may be

Re: clear() collection proxy RemovalAware

2004-04-30 Thread Jakob Braeuchi
hi armin, you're right. but imo we should only force a load if the collection is removal aware. i do not like the idea of loading objects to clear a list... jakob Armin Waibel wrote: Hi Jakob, I'm not sure if this will solve the problem with removal aware list implementation, because

Re: clear() collection proxy RemovalAware

2004-04-30 Thread Armin Waibel
Jakob Braeuchi wrote: hi armin, you're right. but imo we should only force a load if the collection is removal aware. i do not like the idea of loading objects to clear a list... sounds good! To check the collection type seems the best solution... Armin jakob Armin Waibel wrote: Hi

Re: clear() collection proxy RemovalAware

2004-04-30 Thread Jakob Braeuchi
hi armin, i fixed it. jakob Armin Waibel wrote: Jakob Braeuchi wrote: hi armin, you're right. but imo we should only force a load if the collection is removal aware. i do not like the idea of loading objects to clear a list... sounds good! To check the collection type seems the best

Re: Problem with query pattern and extents

2004-04-30 Thread Jakob Braeuchi
hi loic, there's a new feature to support pathHints per criteria. this could probably help. btw the attachement got lost. jakob Loïc Péron wrote: Hi, I have a problem using patterns for querying (case files attached as patch bellow for more precisions) My query is two-level deep with two