RE: MSSQL and CLOB

2004-08-19 Thread Guillaume Nodet
I know that the Microsoft jdbc driver does not handle clob correctly. Try using jtds driver on http://jtds.sourceforge.net/ Guillaume > -Message d'origine- > De : Frank Renaers [mailto:[EMAIL PROTECTED] > Envoye : jeudi 19 aout 2004 12:00 > A : [EMAIL PROTECTED] > Objet : MSSQL and CLOB

RE: little suggestion about "instanceof"

2004-07-26 Thread Guillaume Nodet
Maybe for the GregorianCalendar as Calendar is an abstract class... You really use a custom calendar class ? Just for curiosity what is the purpose of you own calendar class ? Guillaume > -Message d'origine- > De : David Zejda [mailto:[EMAIL PROTECTED] > Envoye : samedi 24 juillet 2004 07

RE: Date formatting in OJB?

2004-07-01 Thread Guillaume Nodet
ou retrieve the date and want to display it, it is up to you to use the format you want. Guillaume Nodet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Patch submission for cache implementations

2004-06-11 Thread Guillaume Nodet
Number OJB265. Thanks for the tip ! Guillaume > -Message d'origine- > De : Antonio Gallardo [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 11 juin 2004 09:42 > À : [EMAIL PROTECTED] > Objet : RE: Patch submission for cache implementations > > > Guillaume Nod

RE: Patch submission for cache implementations

2004-06-11 Thread Guillaume Nodet
List > Objet : Re: Patch submission for cache implementations > > > Hi Guillaume, > > could you directly send me your patches? > > regards, > Armin > > > Guillaume Nodet wrote: > > > I think there are several problems with the cache implementations : &g

Patch submission for cache implementations

2004-06-10 Thread Guillaume Nodet
I think there are several problems with the cache implementations : * ObjectCacheDefaultImpl This cache uses soft references for storing objects, but not for the keys so they stay in the map forever. The key for a garbaged soft reference is only removed when the

Re: Patch submission for cache implementations

2004-06-10 Thread Guillaume Nodet
package org.apache.ojb.broker.cache; /* Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or

Re: Patch submission for cache implementations

2004-06-10 Thread Guillaume Nodet
package org.apache.ojb.broker.cache; /* Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or

Re: Patch submission for cache implementations

2004-06-10 Thread Guillaume Nodet
package org.apache.ojb.broker.cache; /* Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or

RE: OJB, MySql.... how do I create the data structures?

2004-06-04 Thread Guillaume Nodet
As for us, i first used torque to create statically the sql files for the different databases that the application supports. I'm planning to use commons-sql (jakarta sandbox) which has the great functionnality of altering the database schema to keep it in sync with the wanted one. Commons-sql us

RE: Intercepting updates and inserts

2004-06-01 Thread Guillaume Nodet
Why don't you use triggers in hsqldb ? You would not need to plug into OJB this way. Guillaume Nodet > -Message d'origine- > De : Coup, Robert Muir [mailto:[EMAIL PROTECTED] > Envoye : dimanche 30 mai 2004 06:51 > A : OJB Users List > Objet : Intercepting updat

RE: Out of Memory bug

2004-05-28 Thread Guillaume Nodet
I had the same problem with the default cache implementation. There are several cache implementations proposed in ojb: * ObjectCacheDefaultImpl This cache uses soft references for storing objects, but not for the keys and the objects stored so they stay in the map forever.

Exception thrown from abortTransaction (patch needed ?)

2004-05-25 Thread Guillaume Nodet
I've got the following error that is thrown when rolling back a transaction. org.apache.ojb.broker.PersistenceBrokerException: Set autoCommit(false) failed at org.apache.ojb.broker.platforms.PlatformDefaultImpl.changeAutoCommitState(Pl atformDefaultImpl.java:208) at org.apache.ojb

RE: How to test db connection on application startup

2004-05-04 Thread Guillaume Nodet
The validation query is used by ojb when it retrieve a connection from the pool. It launches the validation query and if it fails, the connection is discarded and it tries to borrow a new connection from the pool. here is a snippet of the code i use to ensure the connection to the database is worki

RE: client-server Object Caching

2004-05-04 Thread Guillaume Nodet
I think the only way for the client to be aware of server-side modifications to the database is to use a distributed cache (OSCache, Swarmcache, jcs, ...). The other way is, as Armin mentionned, not to use cache at all on the client. For other tools to do o/r mapping see http://c2.com/cgi-bin/wiki

RE: Poor man trying to log....

2004-04-28 Thread Guillaume Nodet
Your configuration file references log4j. You must create a log4j.properties file with the following content log4j.rootLogger=DEBUG,console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.ImmediateFlush=true log4j.appender.console.Target=System.out log4j.appender.co

RE: AW: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Guillaume Nodet
in and again > (singleton)? I think it must be the second case otherwise how to get the cached object? > > thx, > Dirk > > > -Ursprüngliche Nachricht- > Von: Guillaume Nodet [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 26. April 2004 10:42 > An: OJB User

RE: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Guillaume Nodet
thx, Dirk -Ursprüngliche Nachricht- Von: Guillaume Nodet [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. April 2004 10:42 An: OJB Users List Betreff: RE: Object Cache using ObjectCacheJCSImpl I already used it, just configure the right class in ojb.properties for the key ObjectCacheClass, the

RE: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Guillaume Nodet
I already used it, just configure the right class in ojb.properties for the key ObjectCacheClass, then just configure your cache.ccf file for configuring jcs. Guillaume -Message d'origine- De : Dirk Manske (Service Respond) [mailto:[EMAIL PROTECTED] Envoye : dimanche 25 avril 2004 21:25 A

RE: Problem with sequence manager

2004-04-26 Thread Guillaume Nodet
It should be ok. The reset name seems fine to me. Thanks, Guillaume -Message d'origine- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoyé : vendredi 23 avril 2004 18:08 À : OJB Users List Objet : Re: Problem with sequence manager Guillaume Nodet wrote: > I only added the f

RE: Problem with sequence manager

2004-04-23 Thread Guillaume Nodet
igine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoyé : vendredi 23 avril 2004 16:25 À : OJB Users List Objet : Problem with sequence manager Hi, In my application, i can dynamically create and drop the tables for storing ojb objects. The problem is that when i insert some data, drop the t

Problem with sequence manager

2004-04-23 Thread Guillaume Nodet
Hi, In my application, i can dynamically create and drop the tables for storing ojb objects. The problem is that when i insert some data, drop the tables, recreate them, and insert data, the sequence manager is not re-initialized (i use SequenceManagerHighLowImpl) so when inserting data in the new

RE: OJB - Torque - Incremental sql

2004-04-23 Thread Guillaume Nodet
The commons-sql library is able to handle this, but i've not tested it. Guillaume -Message d'origine- De : Thomas Dudziak [mailto:[EMAIL PROTECTED] Envoye : vendredi 23 avril 2004 11:16 A : OJB Users List Objet : Re: OJB - Torque - Incremental sql On Fri, 23 Apr 2004, Frank Renaers wrot

RE: Problem with clearing cache

2004-04-23 Thread Guillaume Nodet
do it. this will be difficult, because AK implementation does not know about the cache and the cache could be per class-descriptor, per connection or global. regards, Armin Guillaume Nodet wrote: > I use both anonymous PK's and FK's. But the use i do of anonymous > primary keys i

RE: Problem with clearing cache

2004-04-22 Thread Guillaume Nodet
nce *you* want to dig into it? ;-) -Brian On Apr 22, 2004, at 7:55 AM, Guillaume Nodet wrote: > It also seems that cached anonymous keys are not removed from > the cache when an object is deleted from database. > Will these problems be solved, or should i try not to use > anonymou

RE: Problem with clearing cache

2004-04-22 Thread Guillaume Nodet
It also seems that cached anonymous keys are not removed from the cache when an object is deleted from database. Will these problems be solved, or should i try not to use anonymous keys ? Guillaume -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoyé : mercre

RE: Problem with clearing cache

2004-04-21 Thread Guillaume Nodet
Is using a per-broker cache an option? If so you will effectively have the cache cleared every time you obtain a new broker/close a broker. -Brian On Apr 21, 2004, at 8:52 AM, Guillaume Nodet wrote: > I thought i could replace the default implementation > of persistend field with my own,

RE: Problem with clearing cache

2004-04-21 Thread Guillaume Nodet
Nodet -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 avril 2004 14:42 À : OJB Users List Objet : Problem with clearing cache I need to clear the ojb cache at some point in my program (namely after deleting all data in the database). The prob

Problem with clearing cache

2004-04-21 Thread Guillaume Nodet
? The problem is that at some time, i've got errors when inserting objects. I think that the key for the failing object is in cache but not in the database so when a foreign key references it, the insertion fails. Thanks, Guillaume

[bug] Identity class [was OJB and JCS]

2004-04-05 Thread Guillaume Nodet
The Identity class caches internally the hash code and the string representation in private attributes. These attributes are not declared transient, thus the computed hash code is serialized. The problem is that the Class.hashCode() method not overriden and so relies on the Object.hashCode() metho

OJB and JCS

2004-04-01 Thread Guillaume Nodet
have computed another hash code for the same object. Could the m_stringRepresentation and the m_hashCode attributes of the Identity class could be made transient, so that they are not serialized with the Identity ? Thanks, Guillaume

RE: OJB and JCS

2004-03-31 Thread Guillaume Nodet
Identity objects. Cheers, Guillaume -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoye : mercredi 31 mars 2004 09:23 A : OJB Objet : OJB and JCS Hi ! I'm trying to use JCS for the cache layer in OJB and encountered the following problem: the hash c

OJB and JCS

2004-03-30 Thread Guillaume Nodet
have computed another hash code for the same object. Could the m_stringRepresentation and the m_hashCode attributes of the Identity class could be made transient, so that they are not serialized with the Identity ? Thanks, Guillaume

RE: Bug in batch mode

2004-02-17 Thread Guillaume Nodet
; > > broker.store(main1); > > // delete object before add new instance with same PK > > broker.delete(main1); > > broker.store(main2); > > bro

RE: Bug in batch mode

2004-02-16 Thread Guillaume Nodet
Thanks a lot ! > > - In metadata declaration of SubObject field 'mainid' you set access to > anonymous, this is not recommended here. Anonymous fields can only safe > used in conjunction with 1:1 references (The docs are not clear here, > but AFAIK Brian is working on an update). > > - In metada

RE: Bug in doDelete with the markedForDelete list

2004-02-13 Thread Guillaume Nodet
Hi Armin Here is simple class than can be included in PersistenceBrokerImpl as a replacement for the ArrayList. Just replacing the nowStoring and markedForDelete lists with this one. This seems to work fine /** * List inheriting ArrayList, modified for checking objects on

RE: Connection pooling

2004-02-13 Thread Guillaume Nodet
Thanks, Armin Guillaume > -Message d'origine- > De : Armin Waibel [mailto:[EMAIL PROTECTED] > Envoye : vendredi 13 fevrier 2004 10:12 > A : OJB Users List > Objet : Re: Connection pooling > > > Hi, > > Guillaume Nodet wrote: > > Is it poss

RE: XSD to Repository.xml or Torque.xml

2004-02-13 Thread Guillaume Nodet
We've done it, but instead of starting from an xsd, we start from an xml and we generate xsd, repository, torque xml database, java classes aso through multiple xslt stylesheets. Regards, Guillaume > -Message d'origine- > De : David Hooker [mailto:[EMAIL PROTECTED] > Envoye : jeudi 12 fev

Connection pooling

2004-02-13 Thread Guillaume Nodet
Is it possible to disable connection pooling in ojb ? I'm using only one jdbc connection at the same time and do not want to bother with the validationQuery that is database specific. Regards, Guillaume - To unsubscribe, e-mail

RE: Bug in doDelete with the markedForDelete list

2004-02-12 Thread Guillaume Nodet
Hi, > > What are the problems? If we delete the same object twice or more (same > PK, but different instances), nothing should happend. > When we store different instances with same PK, first time an insert > will happend, all further instances cause an update. > Do I overlook a fault? > I th

RE: Bug in doDelete with the markedForDelete list

2004-02-12 Thread Guillaume Nodet
hat you would have to abstract the object equality comparisons and let them be controlled by specific implementations as needed by the business environment. Just wanted to raise the questions because the change you are discussing is subtle, yet potentially very large in scope. Thanks. Larry. Ar

RE: Bug in batch mode

2004-02-11 Thread Guillaume Nodet
void testDeleteInsert() { broker.beginTransaction(); MainObject main1 = new MainObject(1, "Something"); main1.add(new SubObject("A subobject")); broker.store(main1); broker.commitTransaction(); broker.beginTransaction(); broker.ser

RE: Bug in batch mode

2004-02-11 Thread Guillaume Nodet
package org.apache.ojb.broker; import java.util.*; public class MainObject { private int id; private String name; private Collection subObjects; public MainObject() { } public MainObject(int id, String name) { setId

RE: Bug in batch mode

2004-02-11 Thread Guillaume Nodet
package org.apache.ojb.broker; import java.util.*; public class SubObject { private String name; public SubObject() { } public SubObject(String name) { setName(name); } public String getName

RE: Bug in batch mode

2004-02-11 Thread Guillaume Nodet
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Bug in batch mode

2004-02-11 Thread Guillaume Nodet
I'm splitting it because i have problems when attaching a zip file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Bug in doDelete with the markedForDelete list

2004-02-11 Thread Guillaume Nodet
. Guillaume -Message d'origine- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 février 2004 19:14 À : OJB Users List Objet : Re: Bug in doDelete with the markedForDelete list Hi Guillaume, Guillaume Nodet wrote: > Another way could be to use a specific Map that test a

RE: Bug in doDelete with the markedForDelete list

2004-02-11 Thread Guillaume Nodet
Another way could be to use a specific Map that test an object equality with a '==' instead of a 'equals'. Guillaume -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 février 2004 12:22 À : OJB Objet : Bug in doDelete with

RE: Bug in batch mode

2004-02-11 Thread Guillaume Nodet
ug in batch mode Hi Guillaume, I am sorry for the delay. On Tuesday 10 February 2004 09:36, Guillaume Nodet wrote: > Are my problems out of the design of ojb ? Look at the end of testBatchStatementsOrder() method in BatchModeTest.java Isn't there the same situation that you describe? You can

Bug in doDelete with the markedForDelete list

2004-02-11 Thread Guillaume Nodet
Hi Armin ! I've found a problem using objects instead of Identity in the markedForDelete list of PersistenceBrokerImpl class. Here is my problem: I want to delete an object A that contains a collection of B objects. When i put 2 B objects that are equals in my collection, and trying to delete the

RE: Bug in batch mode

2004-02-10 Thread Guillaume Nodet
Are my problems out of the design of ojb ? Do you want i to write a test case ? Regads, Guillaume -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 février 2004 09:58 À : OJB Developers List; [EMAIL PROTECTED] Objet : RE: Bug in batch mode Hi

RE: Identity with double column primary key

2004-02-05 Thread Guillaume Nodet
Sorry, the order of my primary keys in the repository have changed... -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoye : jeudi 5 fevrier 2004 15:09 A : OJB Users List Objet : Identity with double column primary key I'm using double column primary ke

Identity with double column primary key

2004-02-05 Thread Guillaume Nodet
I'm using double column primary keys. When i retrieve an object with the getObjectByIdentity, i construct a new Identity object giving the two values for my columns. The problem is that i ran some tests on another computer, and the sql statements was badly built. Ojb had inverted the values assign

RE: Collection prefetching patch

2004-02-04 Thread Guillaume Nodet
x27;origine----- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoye : mercredi 4 fevrier 2004 09:40 A : OJB Users List Objet : Collection prefetching patch I saw that ojb do automatically create empty collections and set them to the appropriate field even if they are empty. In my own, case, this

Collection prefetching patch

2004-02-04 Thread Guillaume Nodet
it2.next()); } result = col; Another way to solve my problem is to implement my own PersistentField class that avoids setting empty collections on nested object if they are not created yet, but i guess the one above is better. Regards, Guillau

Memory problems using default cache

2004-02-03 Thread Guillaume Nodet
? Guillaume Nodet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Problem updating objects with collections

2004-02-03 Thread Guillaume Nodet
ect a insert into b ... // insert new collection Can anyone give me a hint the problem ? -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoye : mardi 3 fevrier 2004 10:12 A : OJB Users List Objet : Problem updating objects with collections

Problem updating objects with collections

2004-02-03 Thread Guillaume Nodet
n the collection): * update of row in the A table * insert a row in the B table My problem is that ojb do not delete the old B collection. I checked the PersistenceBrokerImpl code, but i did not see anything about deleting objects in collections that are not here anymore. Regards Guillaume

RE: Optimistic locking error with SequenceManagerHighLowImpl

2004-01-30 Thread Guillaume Nodet
eByQuery method ? -Message d'origine- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoye : vendredi 30 janvier 2004 10:56 A : OJB Users List Objet : Re: Optimistic locking error with SequenceManagerHighLowImpl Hi Guillaume, Guillaume Nodet wrote: > When using two instances o

Optimistic locking error with SequenceManagerHighLowImpl

2004-01-30 Thread Guillaume Nodet
is cached by the cache implementation, shouldn't it be necessary to remove it from the cache before retrying the process ? I suppose that the cache returns the same object every times it is queried so the process will fail at each new attempt. Regards, Guillaume

TorqueRepositoryGenerator

2004-01-29 Thread Guillaume Nodet
ses a hashmap, it looses all sorting infos. Am i missing something or is this a real problem ? If so, is there some code somewhere in ojb i could use to sort the tables in the right way. Guillaume Nodet - To unsubscribe, e

Apologies

2004-01-23 Thread Guillaume Nodet
setNestedObject(attrib, nestedName, value); } } else { PersistentField pField = createInternPersistentField(ProxyHelper.getRealClass(obj), fieldName); pField.set(ProxyHelper.getRealObject(obj), value);

Nested primitive types

2004-01-22 Thread Guillaume Nodet
I've got the following problem, that i can solve with a custom implementation of PersistentField. I've got a simple the following objects: class A { int i; } class B { A a; } I store B and A in the same table using nested fields. The problem is that when i store an empty B objec

Problem with foreign keys in cvs lastest version

2004-01-16 Thread Guillaume Nodet
I've got an exception that is thrown when using the lastest version of ojb in cvs that did not occured with the labelled RC5. I'm not using batch mode for this problem: Caused by: org.apache.ojb.broker.KeyConstraintViolatedException: SQL failure while insert object data for class com.opti time.api

RE: TimeStamp & Error Codes

2004-01-14 Thread Guillaume Nodet
Considering your mail, i'm not sure you have completely understood what OJB is for. What do you want to use it for ? -Message d'origine- De : Gopi Nandamuri [mailto:[EMAIL PROTECTED] Envoye : mercredi 14 janvier 2004 16:34 A : OJB Users List Objet : RE: TimeStamp & Error Codes Hi All,

RE: Batch mode and foreign keys

2004-01-14 Thread Guillaume Nodet
ay 13 January 2004 12:53, Guillaume Nodet wrote: > The Oracle error is: > ORA-02291 integrity constraint (%s.%s) violated - parent key not found > > The constraint referenced in my case is an optional foreign key > 'FOREIGN KEY (ACTDATA) REFERENCES ACTIVITIES (ID)' on ta

CVS access

2004-01-14 Thread Guillaume Nodet
I'm trying to access the cvs server, but i can not figure how to login in. I tried the following using 'anoncvs' as password: $ cvs login Logging in to :pserver:[EMAIL PROTECTED]:2401/home/cvspublic CVS password: cvs [login aborted]: connect to cvs.apache.org(209.237.227.194):2401 failed: Connecti

RE: Batch mode and foreign keys

2004-01-14 Thread Guillaume Nodet
rsion? Thanks, Oleg On Tuesday 13 January 2004 12:53, Guillaume Nodet wrote: > The Oracle error is: > ORA-02291 integrity constraint (%s.%s) violated - parent key not found > > The constraint referenced in my case is an optional foreign key > 'FOREIGN KEY (ACTDATA) REFER

RE: Problem using strongly typed collections

2004-01-13 Thread Guillaume Nodet
What are the drawbacks of using collections that do not implement ManageableCollection ? Will the cache system work as before ? -Message d'origine- De : Guillaume Nodet [mailto:[EMAIL PROTECTED] Envoye : mardi 13 janvier 2004 18:12 A : OJB Users List Objet : RE: Problem using str

RE: Problem using strongly typed collections

2004-01-13 Thread Guillaume Nodet
data model, but do you have a public void setBs( Collection ) method in A? Guillaume Nodet wrote: >The problem is the object model cannot be modified. > >-Message d'origine- >De : Thomas Mahler [mailto:[EMAIL PROTECTED] >Envoye : mardi 13 janvier 2004 17:41 >A

RE: Problem using strongly typed collections

2004-01-13 Thread Guillaume Nodet
The problem is the object model cannot be modified. -Message d'origine- De : Thomas Mahler [mailto:[EMAIL PROTECTED] Envoye : mardi 13 janvier 2004 17:41 A : OJB Users List Objet : Re: Problem using strongly typed collections Hi Guilaume, Guillaume Nodet wrote: > I've

Problem using strongly typed collections

2004-01-13 Thread Guillaume Nodet
orImpl and adding a set method public void setBs(Collection list) but I've got the following exception: Can't get WriteMethod for property:bs in object:A Is there a way to store and read my collection without writing a custom PersistentFiel

RE: Batch mode and foreign keys

2004-01-13 Thread Guillaume Nodet
with the batch mode, because OJB changes the order of statements to group them into batches, but in such way that doesn't violate *known* constraints. Regards, Oleg On Tuesday 13 January 2004 08:07, Guillaume Nodet wrote: > Hi ! > > I've got a problem with RC5. > I use the br

Batch mode and foreign keys

2004-01-13 Thread Guillaume Nodet
en i commit the transaction between each stored objects, i've got no problem. Has anyone an idea ? Guillaume Nodet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]