Hi, it depends on the auto-delete settings:
http://db.apache.org/ojb/docu/guides/basic-technique.html#1%3A1+auto-xxx+setting http://db.apache.org/ojb/docu/guides/basic-technique.html#1%3An+auto-xxx+setting http://db.apache.org/ojb/docu/guides/basic-technique.html#m%3An+auto-xxx+setting regards Alessandro On 12/13/07, Hiller, Frank RD-PT31 <[EMAIL PROTECTED]> wrote: > > Hi community, > > I'm using PersistenceBroker of OJB1.0.3. > > Is it correct that "PersistenceBroker.deleteByQuery(QueryByCriteria q)" > does not delete objects referenced by a collection-descriptor? > > Whene I use > (1) Object obj = PersistenceBroker.getObjectByQuery(QueryByCriteria q) > (2) PersistenceBroker.delete(obj) > > it works. > > Thanks > Frank > > > Confidentiality note: > The information in this email and any attachment may contain confidential > and proprietary information of Heidelberger Druckmaschinen AG and/or its > affiliates and may be privileged or otherwise protected from disclosure. If > you are not the intended recipient, you are hereby notified that any review, > reliance or distribution by others or forwarding without express permission > is strictly prohibited and may cause liability. In case you have received > this message due to an error in transmission, we kindly ask you to notify > the sender immediately and to delete this email and any attachment from your > system. >