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
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
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]
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
?
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
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
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
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
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
;
> > broker.store(main1);
> > // delete object before add new instance with same PK
> > broker.delete(main1);
> > broker.store(main2);
> > bro
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
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
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
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
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
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
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
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
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
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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
.
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
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
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
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
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
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
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
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
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
?
Guillaume Nodet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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
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
setNestedObject(attrib, nestedName, value);
}
}
else
{
PersistentField pField =
createInternPersistentField(ProxyHelper.getRealClass(obj), fieldName);
pField.set(ProxyHelper.getRealObject(obj), value);
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
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
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,
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
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
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
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
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
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
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
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
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]
74 matches
Mail list logo