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 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 = valueObjects.iterator(); i.hasNext();)
Object valueObject = i.next();
broker.store(valueObject, ObjectModification.INSERT);
}
broker.commitTransaction();
}
...but it doesn't work, not one object is stored into the database.
Anybody got an idea?
Regards,
Abid
--
Josef Wagner
On Ergy Systemberatung GmbH
Füssener Str. 31
87459 Pfronten
Tel.: 08363 92898 - 57
Fax.: 08363 92898 - 51
E-Mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]