store collections

2006-10-11 Thread Abid Hussain
Hi everybody, I want to implement a method which stores not only one object but a collection of objects. I tried this one: public void storeAll(Collection valueObjects) { if (valueObjects != null) { broker.beginTransaction(); for (Iterator i =

Re: store collections

2006-10-11 Thread Abid Hussain
Hi again, I forgot to tell that the problem seems to have to do with the using of proxies. Because, when I change the code to this: public void storeAll(Collection valueObjects) { if (valueObjects != null) { broker.beginTransaction(); for (Iterator i =

Re: store collections

2006-10-11 Thread Josef Wagner
Hello Abid, your code is o.k. Does it work with storing one object allready? valueObjects is != null :o) ? have you debugged this width setting breakpoints? I see no problem, why it shouldn`t work. regrads Josef Abid Hussain schrieb: Hi everybody, I want to implement a method which stores

Re: store collections

2006-10-11 Thread Armin Waibel
Hi Abid, Abid Hussain wrote: Hi again, I forgot to tell that the problem seems to have to do with the using of proxies. How can it happen that you try to insert ojb-proxied objects? If the proxy object isn't materialized OJB assume that nothing has changed and skip the store. regards,

Re: Problems generating sql with the SqlGenerator

2006-10-11 Thread Armin Waibel
Josef Wagner wrote: Hi Armin, yes, I have the problem only when adding my extension. Generally, all works fine. We have tried a other solution like this: - public String getPreparedSelectStatement(Query query, ClassDescriptor cld) { try

Re: store collections

2006-10-11 Thread Abid Hussain
Hi Armin, How can it happen that you try to insert ojb-proxied objects? If the proxy object isn't materialized OJB assume that nothing has changed and skip the store. Because I wanted to copy values from one database to another. So I first retrieved the values from the local DB and then tried

ojb 1.x and number of ojb-users

2006-10-11 Thread Abid Hussain
Hello everybody, I have two questions which do not concern about the usage of OJB: 1. On the OJB-homepage it says that the work for OJB 1.x has started in 11/2005 (http://db.apache.org/ojb/news.html). I just wondered about this, because the last entry on the page is from 12/2005. Are there