Re: Turning off INFO/DEBUG message

2003-10-14 Thread Danilo Tommasina
Try to set: # Logger for ConnectionFactory org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=ERROR Since ConnectionFactoryPooledImpl extends ConnectionFactoryAbstractImpl, this should do the job, otherwise set: # The Default Logger instance used within OJB DEFAULT.LogLevel

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Gerhard . Grosse
Hi Jakob, It was the attribute 'user' that was null, when I made 'userId' anonymous, and the problem was quite reproducible. I didn't follow up on this because I moved to the ODMG API, where the problem hasn't occurred so far. Does your testcase work when setting proxy=false in the collection

Re: How to get SQL statements executed by OJB without using P6Spy

2003-10-14 Thread Danilo Tommasina
Ant has nothing to do with P6Spy, even if you do not use ant you still can use P6Spy. You can also let OJB log the generated statements, however they will not show the query values. Set the following property in OJB.properties: # Logger for SqlGenerator, useful for debugging generation of SQL o

RE : How to get SQL statements executed by OJB without using P6Spy

2003-10-14 Thread Emmanuel Dupont
Hi Zhe, I think you have to find a database tool. Under MsSql we use Profil Gererator tool) Check out with your database tools... Good luck. -Message d'origine- De : Zhe Liu [mailto:[EMAIL PROTECTED] Envoyé : mardi 14 octobre 2003 04:17 À : [EMAIL PROTECTED] Objet : How to ge

Re: Field Descriptor Order

2003-10-14 Thread Nils Kalchhauser
I think the id was the only way to reference fields in the repository up until about 0.9.7. Now that you can reference by name it does not have much use from the application point of view... greets, Nils Danilo Tommasina <[EMAIL PROTECTED]> wrote (Tue, 14 Oct 2003 08:51:08 +0200): > Hi, > > Th

What jar contains JDO classes ?

2003-10-14 Thread Christophe.Demarey
Hi, I think the persistence manager for JDO is the "org.apache.ojb.jdori.sql.OjbStorePMF" class but I can't find it in any jar. Where is it ? Must I build this jar ? If yes, what is the way to do this ? Thanks. -- Christophe Demarey, Research engineer OpenCCM project - http://www.objectweb.org/

Re: What jar contains JDO classes ?

2003-10-14 Thread Philippe Hacquin
You have to rebuild the OJB JAR with "with-jdori" as mentioned in the JDO tutorial. Have a look at the "with-jdori" target in build.xml. Christophe.Demarey wrote: Hi, I think the persistence manager for JDO is the "org.apache.ojb.jdori.sql.OjbStorePMF" class but I can't find it in any jar. Wh

Re: What jar contains JDO classes ?

2003-10-14 Thread Antonio Gallardo
Christophe.Demarey dijo: > Hi, > > I think the persistence manager for JDO is the > "org.apache.ojb.jdori.sql.OjbStorePMF" class but I can't find it in any > jar. Where is it ? > Must I build this jar ? > If yes, what is the way to do this ? Hi Christophe: This is a very common question. :-D I u

Re: outer join

2003-10-14 Thread Jakob Braeuchi
hi zhe, do you want to use a manually written sql, or do you prefer QueryByCriteria ? if you go for the latter, use setPathOuterJoin("collUsers"). hth jakob Zhe Liu wrote: Hi, I cannot make outer join work for the following query by setPathOuterJoin: select * from company, users where company

Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Jakob Braeuchi
hi gerhard, yup, it also works with proxy=false. do you use the latest from repository ? jakob [EMAIL PROTECTED] wrote: Hi Jakob, It was the attribute 'user' that was null, when I made 'userId' anonymous, and the problem was quite reproducible. I didn't follow up on this because I moved to the

xml transformation from OJB 0.8.375

2003-10-14 Thread Avril Kotzen
We are in the process of upgrading from OJB 0.8.375 to 1.0.RC4. Firstly let me congratulate the development team on a very impressive product. I really owe a huge debt to OJB for teaching me a lot about O-R mapping and good OO design techniques. I am trying to transform our 0.8.375 repository mapp

ERROR: ConfigurableFactory configuration key class for key'ConnectionManagerClass' does not exist.

2003-10-14 Thread Christophe.Demarey
Hi, When I test my application with OJB, I have an error with the "ConnectionManagerClass". Have you any idea about this ? I have put the output error bellow. Regards. PS: I still have a question: Is there a way to generate the "repository.xml" file from a JDO file ? Error report : --

RE: N same class mapping question...

2003-10-14 Thread oliver . matz
Hello Brian, > -Original Message- > [..] > -- Schema Def'n -- > > [..] > Why is 'users' lower-case here and uppercase above? Might cause problems depending on the RDMBS. > > > Olli

Re: ERROR: ConfigurableFactory configuration key class for key'ConnectionManagerClass' does not exist.

2003-10-14 Thread Armin Waibel
Hi, On Tue, 14 Oct 2003 14:37:02 +0200, Christophe.Demarey <[EMAIL PROTECTED]> wrote: Hi, When I test my application with OJB, I have an error with the "ConnectionManagerClass". Do you mix different OJB version? E.g. configuration file from an earlier version (especially OJB.properties) in cla

Re: How to get SQL statements executed by OJB without using P6Spy

2003-10-14 Thread Edson Carlos Ericksson Richter
In MS SQL, use the SQL Profiler Tool (came with SQL Server itself). In SapDB, put dbalias="//yourservername/yourdatabasename?trace=c:/fileforlog.txt" (for *nix machines, use a relative or absolute path, or just use the name of the file: he will be on you app path). I think the best is the SapDB

Antwort: Re: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Gerhard . Grosse
Hi Jakob, At the time I had the problem, I was using RC4. Now I use CVS HEAD (and ODMG API). I'll see if I can find the old code and reproduce the problem with the lastest version of OJB. Gerhard Jakob Braeuchi <[EMAIL PROTECTED]> 14.10.2003 14:29 Bitte antworten an "OJB Users List"

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
I have mixed and matched the value, but it hasn't mattered. I had thought it might care so I tried various combinations. It in this vase being a nebulous entity who thwarts my plans, as to my knowledge neither OJB nor Postgres care about case of table names. Will experiment on that one further

Re: ERROR: ConfigurableFactory configuration key class for key'ConnectionManagerClass' does not exist.

2003-10-14 Thread Christophe.Demarey
Armin Waibel wrote: Hi, On Tue, 14 Oct 2003 14:37:02 +0200, Christophe.Demarey <[EMAIL PROTECTED]> wrote: Hi, When I test my application with OJB, I have an error with the "ConnectionManagerClass". Do you mix different OJB version? E.g. configuration file from an earlier version (especially

Initializing collection attributes

2003-10-14 Thread Gerhard . Grosse
Hi, I ran into a problem with implementing the collection attribute for a 1:n mapping: Since I didn't want to "polute" my persistent objects with any ODMG or even OJB specific imports, I just initialized my collection attributes (of type java.util.List) with ArrayLists when needed. This worke

Re: ERROR: ConfigurableFactory configuration key class for key'ConnectionManagerClass' does not exist.

2003-10-14 Thread Armin Waibel
Hi again, On Tue, 14 Oct 2003 15:05:18 +0200, Christophe.Demarey <[EMAIL PROTECTED]> wrote: Armin Waibel wrote: Hi, On Tue, 14 Oct 2003 14:37:02 +0200, Christophe.Demarey <[EMAIL PROTECTED]> wrote: Hi, When I test my application with OJB, I have an error with the "ConnectionManagerClass".

RE: N same class mapping question...

2003-10-14 Thread oliver . matz
Hej Brian, > -Original Message- > From: Brian McCallister [mailto:[EMAIL PROTECTED] > > I have mixed and matched the value, but it hasn't mattered. I had > thought it might care so I tried various combinations. It in > this vase > being a nebulous entity who thwarts my plans, as to my

Re: ERROR: ConfigurableFactory configuration key class for key'ConnectionManagerClass' does not exist.

2003-10-14 Thread Christophe.Demarey
Hi again, The property "ConnectionManagerClass" was well setted. But the jdo runtime didn't find the OJB.properties file. So, default values were setted and I got an exception. Since I put the OJB.properties file in my classpath, it's good. I still have two questions : 1) How create the database

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
On Tuesday, October 14, 2003, at 09:33 AM, [EMAIL PROTECTED] wrote: Hej Brian, -Original Message- From: Brian McCallister [mailto:[EMAIL PROTECTED] I have mixed and matched the value, but it hasn't mattered. I had thought it might care so I tried various combinations. It in this vase bein

RE: N same class mapping question...

2003-10-14 Thread oliver . matz
Hello Brian, > -Original Message- > From: Brian McCallister [mailto:[EMAIL PROTECTED] > > Which concrete class is instantiated > > for the list field? > > Default - I don't specify anything so should be a Vector. I bet this is the problem. You'd probably better use one of the managed

Collection Reference and Inheritance

2003-10-14 Thread Christopher C Worley
Hi all, I was wondering if this is the way ojb is meant to operate when references and inheritance are combined. What I have are the tables listed below which are mapped to class Party, Person and PartyRelationship where Person extends Party. In the Party class descriptor I have a collection-

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
On Tuesday, October 14, 2003, at 10:29 AM, [EMAIL PROTECTED] wrote: I bet this is the problem. You'd probably better use one of the managed collections. Could you please check by outputting xxx.getClass().getName() somewhere? On retrieved collections it uses: .org.apache.ojb.broker.util.collecti

Re: Collection Reference and Inheritance

2003-10-14 Thread Leandro Rodrigo Saad Cruz
AFAIK, ojb doesn't support referece/collection inherence ! I have some patches, which only work for collection descriptors, that add collection descriptor to all elements of an extent ! If you wnat I can send you the pacthes ! On Tue, 2003-10-14 at 13:26, Christopher C Worley wrote: > Hi all, > >

Re: N same class mapping question...

2003-10-14 Thread Brian McCallister
Follow up.. Changing the OTM Test to use PB style QueryByCriteria also fails: public void testRequestFriendOTMTwo() throws Exception { OTMConnection conn = SimpleKit.getInstance().acquireConnection(PersistenceBrokerFactory.getDe faultKey()); org.apache.ojb.otm.core.Tra

WrappedConnection Warning after getReportQueryIteratorByQuery

2003-10-14 Thread Benjamin Wagner
Hi all, I need to execute my own SQL Statements by using QueryBySQL. I figured out that the only way to do this, is to use the getReportQueryIteratorByQuery method. If i use getCollectionByQuery or getIteratorByQuery as writen in the FAQs, the statment is chnaged somehow and not the one i want an

Bug in TransactionImpl?

2003-10-14 Thread Dave . Derry
I believe that I have found a bug in TransactionImpl. But I could be wrong, and if I am, would be interested in hearing why. Some background: We are using RC4. We wrap the OJB transaction in an application Transaction that performs some additional processing for us. Our service layer begins a Tra

Re: Initializing collection attributes

2003-10-14 Thread Armin Waibel
Hi Gerhard, this is a known problem. Currently caching is not very sophisticated, but we will start to implement a really smart two level cache in near future. This new cache implementation should solve most known problems. Currently the user have to take care of a consistent cache. regards, Armin

Re: ERROR: ConfigurableFactory configuration key class for key'ConnectionManagerClass' does not exist.

2003-10-14 Thread Armin Waibel
Hi, On Tue, 14 Oct 2003 15:45:44 +0200, Christophe.Demarey <[EMAIL PROTECTED]> wrote: Hi again, The property "ConnectionManagerClass" was well setted. But the jdo runtime didn't find the OJB.properties file. So, default values were setted and I got an exception. Since I put the OJB.properties

Re: WrappedConnection Warning after getReportQueryIteratorByQuery

2003-10-14 Thread Armin Waibel
Hi, can you set eager-release 'false' and run your test again? Maybe it's a side-effect of eager-release. regards, Armin On Tue, 14 Oct 2003 17:59:50 +0200, Benjamin Wagner <[EMAIL PROTECTED]> wrote: Hi all, I need to execute my own SQL Statements by using QueryBySQL. I figured out that the onl

Re: Bug in TransactionImpl?

2003-10-14 Thread Armin Waibel
Hi, I think you are right. Is there a reason for calling doAbort() rather tha abort() that I am missing? I don't know the reason. I add some new tests, seems that invoke 'abort()' instead 'doAbort()' does work. Only problem: Code for our Transaction#abort looks something like this i

probleme to store M:N

2003-10-14 Thread Réda Benzair
Hi all, A Have problem for store Broker. I have an application which records (UPDATE) objects Randon I have an error which is stored of this application I used HashSet for resolve this problem but nothing My config : DATA BASE SMJ_PORTFOLIO CPY_ID and EMP_ID is UNIQUE Error : at

Re: Bug in TransactionImpl?

2003-10-14 Thread Dave . Derry
I agree with you Arminit would be better to not throw an Exception if abort() is called multiple times. Hi, I think you are right. > Is there a reason for calling doAbort() rather tha abort() that I am > missing? I don't know the reason. I add some new tests, seems that invoke 'abort()'

RE: Problem with junit target on Solaris 8 / Oracle 8i

2003-10-14 Thread Taillefer, Troy (EXP)
Hi All This is my first post to this mailing list I am having problem running build.sh junit I am running solaris 8 with oracle 8i (8.1.7) I seem to run out of memory but I have no idea why I have 512 megs of ram and 883 megs of swap space here is my then end of the build log [torque-insert-s

Re: Problem with junit target on Solaris 8 / Oracle 8i

2003-10-14 Thread Armin Waibel
Hi Troy, please have a look in junit log files See db-ojb/target/test/tests-XXX.txt regards, Armin On Tue, 14 Oct 2003 14:36:31 -0400, Taillefer, Troy (EXP) <[EMAIL PROTECTED]> wrote: Hi All This is my first post to this mailing list I am having problem running build.sh junit I am running sol

One more Problem

2003-10-14 Thread Alireza Salemi
Hi, I have a problem with following exception. I don't know what is going wrong. I have a class named Adresse look like this : ... private int adresseId; // Primary Key of the table Adresse private String adressname; private String postleitzahl; ... repository_user.xml of adresse :

Re: One more Problem

2003-10-14 Thread Brian McCallister
First suggestion is to use an Integer instead of an int as your primary key. Second, what type of database are you using? As it looks like the ODBC bridge I am going to guess MS SQL. I have never worked with that myself, but what is the bit length of a default INTEGER in MS SQL? It looks l

Re: One more Problem

2003-10-14 Thread Armin Waibel
Hi, org.apache.ojb.broker.util.sequence.HighLowSequence): Object type and JDBC SQL type mismatch. java.lang.Long the problem arise when the SequenceManager implementation (SequenceManagerHighLowImpl) try to store a sequence object. Seems that Access has problems with fields using Long/long. Does A

How to bind variables when using QueryBySQL

2003-10-14 Thread Zhe Liu
If this is not possible. Is it possible to write some extensions to OJB ? Thanks, Zhe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to bind variables when using QueryBySQL

2003-10-14 Thread Zhe Liu
If this is not possible. Is it possible to write some extensions to OJB ? Thanks, Zhe -Original Message- From: Zhe Liu [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 7:36 PM To: [EMAIL PROTECTED] Subject: How to bind variables when using QueryBySQL Hi, I understand that if I

RE: outer join

2003-10-14 Thread Zhe Liu
This works now. Thanks a lot. -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 4:58 AM To: OJB Users List Subject: Re: outer join hi zhe, do you want to use a manually written sql, or do you prefer QueryByCriteria ? if you go for the latt

RE: outer join

2003-10-14 Thread Zhe Liu
It works now. Thanks a lot. -Original Message- From: Reitsam Andreas [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 11:30 PM To: 'OJB Users List' Subject: AW: outer join hi, try this: Criteria criteria = new Criteria(); QueryByCriteria query = QueryFactory.newQuery(Co

RE: How to get SQL statements executed by OJB without using P6Spy

2003-10-14 Thread Zhe Liu
The logger is good enough for now. Thanks a lot. Zhe -Original Message- From: Danilo Tommasina [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 12:07 AM To: OJB Users List Subject: Re: How to get SQL statements executed by OJB without using P6Spy Ant has nothing to do with P6Sp

RE: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-14 Thread Vincenz Braun
hi jakob, my problem might be a little bit different. I have tables Actions and Statutes with a string primary key. Table Transitions has three columns preStatusName, actionName, postStatusName. preStatusName and postStatusName reference to primary key of Statuses and actionName references to pri

M:N relations mapping problems.....

2003-10-14 Thread Hiu Yen Onn
hello, i am new to OJB. i hope i can help some helps from here... my problem is as followed: i want to make a M:N relational mapping between two tables User and Role. so my repository-user.xml is such followed

RE: odmg/caching problem?

2003-10-14 Thread sclark
Here's what's happening: The certificate objects do indeed point back to the customer, but without customer.addCertificate(), the customer doesn't know about the certificates. When you commit the transaction, the FK is copied into the certificates and everything is written to the database as ex

Re: Problem with junit target on Solaris 8 / Oracle 8i

2003-10-14 Thread Thomas Mahler
Hi Troy, Having enough physical memory may not be problem, but the default memory settings of the JVM. On platforms other than Windows and Linux it may be necessary to add JVM parameters to increase heap- and stacksize above the default values. cheers, Thomas Taillefer, Troy (EXP) wrote: Hi Al