Re: Disabling Optimistic Locking at Runtime

2005-09-08 Thread Colin Kilburn
Thanks Armin, that the remove/re-add field descriptor seems to work for me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ImplicitLocking clarification / confusion

2005-09-08 Thread Colin Kilburn
Hello, I'm using OJB 1.0.3 with the ODMG api and I'm confused about implicit locking. I prefer from past experience to have ImplicitLocking=false in my OJB.properties and this is what I've done for quite some time. I've started getting (sometimes) LockNotGrantedExceptions on objects that

Disabling Optimistic Locking at Runtime

2005-09-07 Thread Colin Kilburn
Hello, I am using optimistic locking for a few classes/tables in my application. However, in certain circumstances when my application starts up, I want to disable optimistic locking for the lifetime of the application. I have tried to modify the repository metadata at runtime, but I

ObjectEnvelopeTable.reorder() problems

2005-03-29 Thread Colin Kilburn
Hi All, I'm currently having a problem with reordering of written objects done by the org.apache.ojb.odmg.ObjectEnvelopeTable.reorder() method. I have implicit locking off, and I always lock objects in the order they would have to in order to maintain referrential integrity. That is, I

Re: ObjectEnvelopeTable.reorder() problems

2005-03-29 Thread Colin Kilburn
, with a FK reference to the just-inserted B commitTxn(); regards, Armin Colin Kilburn wrote: Hi All, I'm currently having a problem with reordering of written objects done by the org.apache.ojb.odmg.ObjectEnvelopeTable.reorder() method. I have implicit locking off, and I always lock objects

Re: ObjectEnvelopeTable.reorder() problems

2005-03-29 Thread Colin Kilburn
every time I call lock(). Is this correct? Is flush() nothing more than a workaround? Colin Colin Kilburn wrote: Hi Armin, thanks for the response. I'm using OJB 1.0.1. I've never noticed the TransactionExt.flush() method. Calling it does seem to fix the problem. I do have 2 questions, however

Re: ObjectEnvelopeTable.reorder() problems

2005-03-29 Thread Colin Kilburn
Thanks Armin. flush() fixes the problem. I just tried upgrading to 1.0.2, but that doesn't appear to fix the problem. I can live with the flush() workaround until that is solved. Thanks again, I appreciate your help. Colin Armin Waibel wrote: Colin Kilburn wrote: Hi Armin, thanks

[OT] Surrogate/Artificial Primary Keys and large databases

2004-04-27 Thread Colin Kilburn
Hi All, I regularly use surrogate/artificial/auto-increment/meaningless primary keys for most of my tables. While I've only been a full-time developer for about 6 years, I have seen this as commonplace and certainly not unusual. I also find they map nicely to the concept of Identity in O/R

Re: Object replication vs RDBMS replication (little off topic)

2003-11-30 Thread Colin Kilburn
currently very tied up trying to finish another project.) What results from these efforts (or at least parts of them) may be generic enough to be useful to others. Anyone else? Colin Kilburn [EMAIL PROTECTED] wrote: Hi all, Weve being using OJB for a while and we do like it. While we depart from

Re: Changing object properties outside the transaction ...

2003-11-26 Thread Colin Kilburn
Phillippe, I wanted to and do the same thing, and I now use this trick: http://www.mail-archive.com/[EMAIL PROTECTED]/msg04141.html HTH, Colin Philippe Boisaubert wrote: About using/design with ODMG API : Generally I want to get a domain (business) object from the persistence layer. Then I

Automatically trim trailing spaces in MS Sql Server

2003-07-16 Thread Colin Kilburn
Hi All, I can't find anything about this in the archives or by googling, but I can't be the first to want to do this... Data in a CHAR column is padded with spaces. This is fine for storage, but how can I tell sql server or OJB that I don't want the trailing spaces when I retrieve the column

Re: using OJB with Struts and Eclipse

2003-03-04 Thread Colin Kilburn
Phillipe, I keep my repository*.xml files in WEB-INF/src, and eclipse seems to copy them over to WEB-INF/classes for me. I also use the Sysdeo Tomcat plugin, which may be what's actually helping me out. HTH, Colin [EMAIL PROTECTED] wrote: Hello, I am currently building a web application

Re: where-clause criteria for collection-descriptor?

2003-02-20 Thread Colin Kilburn
D'oh! Thanks Jakob, sorry everyone for the extra traffic. I should have seen those posts. Colin Jakob Braeuchi wrote: hi colin, this feature is already on our todo-list (see posts with subject '1:M querys constraints'). hth jakob Colin Kilburn wrote: Hi All, I'm sorry

where-clause criteria for collection-descriptor?

2003-02-19 Thread Colin Kilburn
Hi All, I'm sorry if this question has been asked before, the archive search capability seems to be broken. This is my first project using OJB, and I enjoy the convenience of the collection-descriptor/inverse-foreignkey mapping. What I'd like to do however is specify additional criteria as