FEATURE REQUEST : specify foreign-key-attribute to use with colle ction descriptors instead of using primary of container class

2004-12-08 Thread Janssen, Roger
Hi guys, i've got a question. I am using 1.0-rc6. Currently, using a collection descriptor, you specify the inverse-foreignkey attribute on the items of the collection, and these attributes are matched with the value of the primary key of the object that contains the collection. However,

RE: p6spy

2004-12-08 Thread Daniel Perry
Well, i added: com.mysql.jdbc.Driver a = new com.mysql.jdbc.Driver(); com.p6spy.engine.spy.P6SpyDriver b = new com.p6spy.engine.spy.P6SpyDriver(); Just to verify that it was all there, and it came up with a different error - couldnt find spy.properties in the classpath! Copied that accross, and

PBKey

2004-12-08 Thread Michael . Sack
Hello, i got setup the database and all Tables. I tried to start my Demo application bu there is an error: org.apache.ojb.broker.PBFactoryException: There was no default-PBKey specified at org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersistenceBroker(Unknown

Criteria through extent (Was: Circular criteria)

2004-12-08 Thread Daniel Perry
It apprears that ojb doesnt like criteria at depths that go beyond an extent. My criteria is: crit.addEqualTo(behaviourId, new Integer(id)); crit.addLessThan(rating, new Integer(1)); crit.addEqualTo(meeting.pdp.createdBy, new Integer(mid)); And this generates the following sql (shortened!):

Re: PBKey

2004-12-08 Thread Thomas Dudziak
[EMAIL PROTECTED] wrote: Hello, i got setup the database and all Tables. I tried to start my Demo application bu there is an error: org.apache.ojb.broker.PBFactoryException: There was no default-PBKey specified at

RE: PBKey

2004-12-08 Thread Daniel Perry
Have you got a default connection-descriptor set up in repository_database.xml properly? Are OJB.properties/repository***.xml (x4) all in classpath? Daniel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 08 December 2004 10:50 To: [EMAIL PROTECTED]

Re: PBKey

2004-12-08 Thread Michael . Sack
Hello, I want to start the damo.class from the destination folder of this class. My repository.xml files are in target \classes\resources. How can i set it that he finds this files? regards Michael

RE: PBKey

2004-12-08 Thread Michael . Sack
If you mean this part of my repository_database.xml, then yes i have set it. But it can be possible that there is something wrong in my setting. I use the MySQL 4.1 Server and Java 1.4.2. jdbc-connection-descriptor jcd-alias=default default-connection=true

Re: PBKey

2004-12-08 Thread Thomas Franke
[EMAIL PROTECTED] wrote: Hello, I want to start the damo.class from the destination folder of this class. My repository.xml files are in target \classes\resources. How can i set it that he finds this files I remember at first we had this problem too. Put it under \classes. That's all. We have

Re: PBKey

2004-12-08 Thread Michael . Sack
The xml files are in the resources folder wihich is under classes. I tried also to out the files directly in the folder classes - with the same result. [JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false org.apache.ojb.broker.PBFactoryException: There was no default-PBKey

Re: PBKey

2004-12-08 Thread Thomas Franke
[EMAIL PROTECTED] wrote: The xml files are in the resources folder wihich is under classes. I tried also to out the files directly in the folder classes - with the same result. Have you removed the old work directory before you restarted? That's sometimes the reason for an error. The changed

Re: FEATURE REQUEST : specify foreign-key-attribute to use with colle ction descriptors instead of using primary of container class

2004-12-08 Thread Jakob Braeuchi
hi roger, imo this feature could be useful in some real life scenarios; even without an intermediate class like Acl in your example. but i'd prefer to extend the inverse-foreignkey (called referencing in the following snippet, but this is just a temp name). if the referencing attribute is

Re: Criteria through extent (Was: Circular criteria)

2004-12-08 Thread Jakob Braeuchi
hi daniel, when resolving the path meeting.pdp.createdBy ojb looks for a collection- or reference-descriptor called 'meeting' and it uses the referenced class to reolve further path-segements 'pdp'. so if the class referenced by 'meeting' does not have a reference-descriptor named 'pdp' ojb

Re: Deadlocks mapped to common exception?

2004-12-08 Thread Oliver Zeigermann
Is this just nonsense or is it that no one is interested? How do OJB users handle deadlocks? Oliver On Sun, 5 Dec 2004 01:23:17 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Folks, can anyone tell me if OJB is able to find out that a certain SQL exception really is a deadlock exception