Re: Tutorial

2004-07-29 Thread Thomas Dudziak
Vincent Chou wrote: Hi, I am exploring the OJB. I installed the binary version on my WindowXP Pro. I also download and followed the Getting_started guide. I compiled the project under Eclipse, it compiled without problem. However, when I tried to run command ant build setup-db. I am getting

Re: Tutorial

2004-07-29 Thread Patrick_Reyes
Return Receipt Your Re: Tutorial document :

Re: Negative Sequence Numbers?

2004-07-29 Thread Armin Waibel
Hi Robert, there is bug in ODMG-api FK assignment when using SequenceManagerNativeImpl (using DB Identity columns). Test case is in CVS and we will try to fix this problem asap. workaround: use the PB-api to insert new object with 1:1 reference Transaction tx = odmg.newTransaction(); tx.begin();

Re: Tutorial

2004-07-29 Thread lasse . lambrecht
Return Receipt Your Re: Tutorial document :

Re: Tutorial

2004-07-29 Thread lasse . lambrecht
Return Receipt Your Re: Tutorial document :

Re: how to change auto-retrieve for a query?

2004-07-29 Thread Armin Waibel
Ji Joose, Joose Vettenranta wrote: Hi, I want to retrieve lot's of data and not to retrieve it's childs (1:n relationship). I'm using like: PersistenceManager persistenceManager = pmf.getPersistenceManager(); PersistenceBroker broker =

Re: ODMG and primary key assignment

2004-07-29 Thread Armin Waibel
Saleem Shafi wrote: Hello, i have a quick question about when a primary key is assigned to an object using the ODMG interface provided by OJB.. i realize that the PersistentBroker.store() method will set the primary key property on the object, but the .lock() method on the ODMG transaction

Re: how to change auto-retrieve for a query?

2004-07-29 Thread Maksimenko Alexander
Armin Waibel wrote: Use collection proxy for child objects http://db.apache.org/ojb/docu/guides/basic-technique.html#Using+a+Single+Proxy+for+a+Whole+Collection or set auto-retrieve of your collection-descriptor to none/false. But be careful when using this setting in combination with

Re: how to postinitialize...even with getCollectionByQuery

2004-07-29 Thread David Zejda
What do you recommend - should I redesign my model to make it not dependent on being informed whenewer an object completely materialized? Thanks. David David Zejda wrote: Mhmm, two things: * Are you sure that the thing object is actually stored in the db, i.e. is there a row for it after the

Re: how to postinitialize...even with getCollectionByQuery

2004-07-29 Thread Thomas Dudziak
David Zejda wrote: What do you recommend - should I redesign my model to make it not dependent on being informed whenewer an object completely materialized? I guess, that would make a lot of things easier. In my experience, if you can get away with POJOs in your app (e.g. the domain is not aware

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Armin Waibel said: Hi Robert, there is bug in ODMG-api FK assignment when using SequenceManagerNativeImpl (using DB Identity columns). Test case is in CVS and we will try to fix this problem asap. workaround: use the PB-api to insert new object with 1:1 reference I'm not sure I

Re: Negative Sequence Numbers?

2004-07-29 Thread Armin Waibel
Robert Crawford wrote: Armin Waibel said: Hi Robert, there is bug in ODMG-api FK assignment when using SequenceManagerNativeImpl (using DB Identity columns). Test case is in CVS and we will try to fix this problem asap. workaround: use the PB-api to insert new object with 1:1 reference I'm not

Re: Query results have all fields null, and log msg 'object is a proxy'

2004-07-29 Thread Stijn de Witt
Can anyone help me with this? I have made some changes in my code, and I got one object of two currently in the db to load correctly. I don't know why the other one does not load. I'm having the feeling that I am missing something here. Here is my code below. I have copied the relevant part of

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Armin Waibel said: Robert Crawford wrote: Armin Waibel said: Do you only use the PB-api? This bug is odmg-api related. I only use the PB-api. Then you shouldn't get problems with negative sequence numbers. Can you describe me with some pseudo code an test case to reproduce your

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Armin Waibel said: Robert Crawford wrote: Armin Waibel said: Robert Crawford wrote: Armin Waibel said: Do you only use the PB-api? This bug is odmg-api related. I only use the PB-api. Then you shouldn't get problems with negative sequence numbers. Can you describe me with some pseudo

Report queries and converted fields

2004-07-29 Thread Sami Altunda
Hi, I am using RC7. Report queries do not convert fields as specified in the mapping. For example, the field shown here returns as BigDecimal in the query result. Is there a way to get it converted? field-descriptor name=procDate column=PROCDATE jdbc-type=bigint

RE: Negative Sequence Numbers?

2004-07-29 Thread Vesely, Maxim [IT]
Does anyone know how to turn native sequencing in DB2? I do get -1 and -2 as values for that column and at some point(when application is restarted) it complaints that an attempt was made to insert non-unique primary key. Thanks in advance. Max. -Original Message- From: Charles N.

auto-retrieve across jdbc-connections

2004-07-29 Thread Ian Hunter
I'm using the PB API, and I have data in two separate databases (on two separate machines). I have an object class in one database that contains another object class from another database. The problem comes when I set auto-retrieve on for the containing class -- OJB doesn't seem to realize that

Re: Negative Sequence Numbers?

2004-07-29 Thread Jin Bal
I've been experiencing the same problem but running on just Tomcat. what version of OJB are you using What DB. I was using RC5 and MySQL i've upgragded and have stopped getting the error in my dev env but have yert to test on the integration server. Cheers Jin - Original Message -

OJB/JDO

2004-07-29 Thread Artur Z
hello I searched the archive and I have not found answers so please tell me: - is it still impossible to use OJB/JDO in production (because of the sun's JDORI license) ? - when apache implementation of JDO will be ready ? - why JDO api is better than ODMG (I mean functionality, usability) ?

RE: Negative Sequence Numbers?

2004-07-29 Thread Vesely, Maxim [IT]
I'm using rc6.0 for now thinking of going to 1.0.0. What version did you upgrade with to make it work? Thank you, Max. -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 9:19 AM To: OJB Users List Subject:Re: Negative Sequence

Re: OJB/JDO

2004-07-29 Thread Brian McCallister
On Jul 29, 2004, at 4:42 PM, Artur Z wrote: hello I searched the archive and I have not found answers so please tell me: - is it still impossible to use OJB/JDO in production (because of the sun's JDORI license) ? Yes - when apache implementation of JDO will be ready ? Good question. We are

Re: OJB/JDO

2004-07-29 Thread Artur Z
thanks form reply correct me if i'm wrong, but if everything will go as planed the apache JDO implementation will be ready by november ? Artur - Original Message - From: Brian McCallister [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, July 29, 2004 11:27 PM

Re: OJB/JDO

2004-07-29 Thread Brian McCallister
On Jul 29, 2004, at 5:53 PM, Artur Z wrote: thanks form reply correct me if i'm wrong, but if everything will go as planed the apache JDO implementation will be ready by november ? That is my personal plan, not an official one, and is subject to the whims of the JDO expert group changing

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Charles N. Harvey III said: It means that something isn't set correctly in the database. This has happened to me many times. It always happens when I turn on native sequencing (IDENTITY in MSSQL or AUTOINCREMENT in MySql). Check the PK of your database, it might not be properly set to

Found unclosed resources while finalize

2004-07-29 Thread ZZZ Liu
Hi, I am using OJB 1.0. I found following message appeared a lot of times in my log file. Could anybody tell me what does that mean and what would cause that problem? 29 Jul 2004 20:27:43 5408 INFO [Finalizer] accesslayer.ReportQueryRsIterator - Found unclosed resources while finalize

memory leak

2004-07-29 Thread ZZZ Liu
Hi, I am writing a tool to import data into database and I am using OJB 1.0 as the persistence layer to do the actual insertion/update into database. I found that I will get OutOfMemoryError problem if I load a large number (over 100, will commit for each file) of files' data. It works fine if I