Re: question about storing objects

2008-05-16 Thread Armin Waibel
Abid Hussain wrote: Hi Armin, thanks for help. Just to be sure that I got the point: When there is a 'proxy="dynamic"' in the class-descriptor, proxies are always used when more than one object is queried? The returned persistence capable object is always a proxy object, even if the query

Re: question about storing objects

2008-05-16 Thread Abid Hussain
Hi Armin, thanks for help. Just to be sure that I got the point: When there is a 'proxy="dynamic"' in the class-descriptor, proxies are always used when more than one object is queried? I thought that proxies are only used when retrieving a collection through a relation (1:n or m:n, e.g. Sh

Re: How open 2 different Databases ?ope

2008-05-16 Thread Armin Waibel
Hi Hans, Hans Novak wrote: Hi, my prg works fine with ojb. But now i have to open 2 different Databases (on the same host), because i want to import/export something. How can i do that ? I have only one "build.properties" file !? OJB can handle different DB at the same time: http://db.apach

Re: Database Update

2008-05-16 Thread Armin Waibel
Hi Hans, Hans Novak wrote: Hi, how can i update the Database, if i change my Java-sourcecode and with that the database structure, without loosing any data. Until now i use the mysql command to import the SQL-Ascii File, created from OJB with ant. But this deletes first all tables. The upc

Re: OJB 1.0.4, Oracle 10g and LONGVARCHAR column issue

2008-05-16 Thread Armin Waibel
Hi Vasily, could you please open an issue on OJB-JIRA http://issues.apache.org/jira/browse/OJB and add a detailed description about how to reproduce the issue (then I'm able to write a test case). regards, Armin Vasily Ivanov wrote: Hello, I'm using Oracle 10.2.0.4.0 thin Jdbc driver, Oracl

Re: question about storing objects

2008-05-16 Thread Armin Waibel
Hi Abid, Abid Hussain wrote: Hi again, I think this issue has to something with the materialization of objects (when using proxies). But I thought that proxies are only used, when retrieving a corresponding collection of an object (in 1:n and m:n relations, e.g. ShoppingCart.getArticles()...

Re: question about storing objects

2008-05-16 Thread Abid Hussain
Hi again, I think this issue has to something with the materialization of objects (when using proxies). But I thought that proxies are only used, when retrieving a corresponding collection of an object (in 1:n and m:n relations, e.g. ShoppingCart.getArticles()...). What I'm doing when using