Re: complex class prolem

2003-06-28 Thread Christophe Marcourt
As it was said to me a few days ago, don't work with Vector but only the interface Collection or List. It will work then. Christophe - Original Message - From: "Timofey Korolev" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Saturday, June 28, 2003 7:39 PM Subject: co

Re: Update only some fields in DB

2003-06-28 Thread Christophe Marcourt
I think it's possible. Before update your object you need to get it from DB with a getObjectByQuery() method call, than you can only update the fileds you need. See tutorial 1 : Updating Objects. Christophe - Original Message - From: "Mykola Ostapchuk" <[EMAIL PROTECTED]> To: <[EMAIL PR

Update only some fields in DB

2003-06-28 Thread Mykola Ostapchuk
Hello, This question already was in this maillist, but nobody answered. It's actually so fundamental in use, that it must be somewhere in FAQ. So, here it is: How can I update not all, but only some fields in some table? I'm using PersistenceBroker.store method to persist an object - and if I don

Re: Connection pool scalability problem

2003-06-28 Thread Armin Waibel
Hi, seems your pool is exausted. see http://db.apache.org/ojb/repository.html section connection-pool connection-pool element in repository attribute 'whenExhaustedAction': 0 - fail when pool is exhausted 1 - block when pool is exhausted 2 - grow when pool is exhausted regards, Armin - Origi

Connection pool scalability problem

2003-06-28 Thread Philippe Collignon
Hi, Under high use, I get a connection pool exception, after 1 sec the connection are released. I use PB and close the broker in a finally block. Did I miss something or is it a bug in the connection pool ? Philippe javax.servlet.ServletException: Could not borrow connection from pool -

Could pool scalability problem

2003-06-28 Thread Philippe Collignon
Hi, Under high use, I get a connection pool exception, after 1 sec the connection are released. I use PB and close the broker in a finally block. Did I miss something or is it a bug in the connection pool ? Philippe javax.servlet.ServletException: Could not borrow connection from pool - org.ap

complex class prolem

2003-06-28 Thread Timofey Korolev
Hello there! I'm new to OJB. I've tried a simple O/R mapping and it worked, but when i've tried to map real life objects i got a problem. There are three classes: LOMGeneralObject & LOMGeneralLanguage & LangString: public class LOMGeneralObject { private BigDecimal identifier; private La

Re: Query Customizers

2003-06-28 Thread Jakob Braeuchi
hi thomas, you can use the customizer for m:n queries as well. see PesistenceBrokerImpl#getFKQuery. hth jakob Thomas Cornet wrote: Reading the doc and the API, I've seen that seems to be limited to 1:n associations. Can someone confirm this fact to me, because I'm currently searching for

Optimistic locking, dependent objects, etc

2003-06-28 Thread ow
Hi, A few questions about OJB: 1. Suppose a proxy is used to represent a whole collection. Does a "session/transaction" have to be opened prior to accessing this collection for the first time? 2. I believe OptimisticLockException will be thrown with ODMG API if the record was deleted/modified. C