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: 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

question about storing objects

2008-05-15 Thread Abid Hussain
Hi everybody, I have written a storeAll()-method in a dao to store all given objects in one transaction (you find the code at the end of this mail). Now please have a look at the following lines of code: Account_2DAO dao1 = new Account_2DAO("DB1"); Collection accounts = dao1.findAll(Account_2.