RE: Invalid argument value: Not unique table/alias: 'A1'

2003-04-03 Thread João Luz
I'm using rc1 version. -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 2 de Abril de 2003 18:06 To: OJB Users List Subject: Re: Invalid argument value: Not unique table/alias: 'A1' hi João, what version of ojb do you use ? jakob João Luz wrote:

RE: Default Cache - bug? design catostrophe? user error?

2003-04-03 Thread David . Corbin
Well, that kind of works. That is, it works great, unless you have bidirectional references that you want refreshed, in which case you get a Stack Overflow |-+--- | | Ron Gallagher | | | [EMAIL PROTECTED]| | |

RE: Default Cache - bug? design catostrophe? user error?

2003-04-03 Thread Sylvain.Thevoz
For me the problem appears without any reference/collection. If you get a simple query to retrieve an object, modify an attribute of this object in the database and get this object a second time the attribute won't be updated. Is it a bug or is there something wrong in my app? Sylvain

RE: FW: Encountered (serious) bug in v0.9.7, don't know if it as been fix ed in later version

2003-04-03 Thread Janssen, Roger
hi, we are planning to migrate to the latest release very soon (maybe even next week). until then i'm not able to test it on a version newer than 0.9.7. (sorry for that) the result looks imo not too bad. selects are done for each of the concrete classes: selects are done in some cases but,

Re: Separating LocalTxManager and JTATxManager Use

2003-04-03 Thread Armin Waibel
Hi Andrew, - Original Message - From: Andrew Gilbert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 03, 2003 12:57 AM Subject: Separating LocalTxManager and JTATxManager Use Have a question trying to use OJB under a J2EE environment. If one deploys web and ejb components

RE: Default Cache - bug? design catostrophe? user error?

2003-04-03 Thread David . Corbin
I think what you're describing is a different problem. If your changing your database outside of OJB, then you probably don't want to use the standard cache. |-+- | | [EMAIL PROTECTED]| | | isscom.com | | |

Problem with the assignement of primary keys.

2003-04-03 Thread PICARD Jérôme
Hello, I have just recovered the last version of OJB. This my problem : When I store the object Customer I obtain the following exception. This exception occurs on assignement of the primary key. Can you help me ? please. Thanks java.lang.ClassCastException:

Problem with SELECT - UPDATE - SELECT cycle

2003-04-03 Thread Patrick Prodhon
Hello. We're using OJB 0.9.7 and I am facing a weird error. I'm selecting data from one table, joining it on a second table using an inner join and retrieving one column from the second table. So I use a Criteria, and type something like criteria.addEqualTo(joinTable.col, somevalue);, as well as

Re: Dynamic OR Maping

2003-04-03 Thread Armin Waibel
Hi, it is possible to change the persistent object metadata (all ClassDescriptors) in a per thread manner or global using the org.apache.ojb.broker.metadata.MetadataManager. Is this possbile ? If not, where can I get in dynamic OJB config ? It is also possible to load and merge additional

Re: FW: Encountered (serious) bug in v0.9.7, don't know if it as been fix ed in later version

2003-04-03 Thread Jakob Braeuchi
hi roger, ok then i wait until you report problems with the new release, i hope of course there are none ;) jakob Janssen, Roger wrote: hi, we are planning to migrate to the latest release very soon (maybe even next week). until then i'm not able to test it on a version newer than 0.9.7.

Re: Problems when using composite primary keys

2003-04-03 Thread Janet Song
Thx Jakob, I've changed the IndirectionHandler class in the release 2 as you recomended: public Object invoke(Object proxy, Method method, Object[] args) { Object subject = null; try { subject = getRealSubject(); // handle toString

RE: Newbie OJB problem

2003-04-03 Thread McKinstry, Pete (HQP)
I'm a relative newbie to OJB, but i'll give this one a whirl. See comments preceded w/ pgm: -Original Message- From: charles grohowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 3:16 PM To: OJB Users List Subject: Newbie OJB problem Hi, I recently set up OJB to work

temporary fix for null foreign key references

2003-04-03 Thread Vincenz Braun
Hello everybody, does anybody has a workaraound or temporary patch for the null foreign key reference bug in OJB? This bug was reported twice in scarab. It occurs when inserting or updating objects that have a null foreign key reference. When using primitives (integer etc. ) as a primary key

Re: Dynamic OR Maping

2003-04-03 Thread Rajeev Kaul
Can you please elaborate on what you mean by in a per thread manner or global? I thought OJB can only have a global metadata definition. Are you implying by per thread to mean that each application can dynamically load its own metadata using the same OJB instance? If that is the case, then it

JDO query question

2003-04-03 Thread Susanne Sherba
I'm using the JDO API and 1.0.rc1 right now. I was expecting that a query would return a Collection of persistent objects. However, it appears to return objects that are not persistent. (I've included my code below.) Can someone clear up my confusion? :-) Thanks in advance! Susanne

OJB RC2 with Oracle 9i2 OS X Beta

2003-04-03 Thread Julio Barros
Hi, I'm trying to set up OJB RC2 to work with my Oracle 9i OS X Beta. I've modified my build.properties to use oracle oracle.properties to specify the connection url but when trying to execute a prepare-tutorials to test out the system I get the following error: [torque-insert-sql] Failed to

OJB date = jdbc date is not saving time part

2003-04-03 Thread gfaerman
Hi all, I´m saving a java.sql.date to an Oracle field using OJB DATE mapping. The java.sql.date ojbect is being set with system date time. obj.lastModifDate(new java.sql.Date(System.currentTimeMillis())); // Lets say ,with the right mask it would be 03/04/2003 15:40:17. When we retrieve the

ODMG vs. PB

2003-04-03 Thread Jacob Hookom
Looking at the performance benchmarks at OJB's page, there's a dramatic difference in speed between ODMG and PB implementations. Is this because of the object locking features with ODMG, or is it because ODMG uses PB and that extra adapter layer causes slow downs? -Jacob

AW: OJB RC2 with Oracle 9i2 OS X Beta

2003-04-03 Thread Geigl Maximilian, R235
Hi, an evergreen problem with oracle (asked and answered several times here): you can only have on LONG or LONG RAW column in one table with oracle, unfortunately OJB_DMAP_ENTRIES is defined with two such fields. We changed the datatype for column VALUE_OID to VARCHAR2(2048) (in the repository

Re: Invalid argument value: Not unique table/alias: 'A1'

2003-04-03 Thread Jakob Braeuchi
hi João, thanks for your testcase. i commited a patch to SqlQueryStatement. the sql produced is now as follows: SELECT A0.idInternal,A0.name FROM A A0 INNER JOIN AB A1 ON A0.idInternal=A1.keyA INNER JOIN B A2 ON A1.keyB=A2.idInternal INNER JOIN C A3 ON A2.idInternal=A3.keyB INNER JOIN D A4 ON

Re: JDO query question

2003-04-03 Thread Thomas Mahler
Hi Susanne, Susanne Sherba wrote: I'm using the JDO API and 1.0.rc1 right now. I was expecting that a query would return a Collection of persistent objects. However, it appears to return objects that are not persistent. (I've included my code below.) Can someone clear up my confusion? :-)

Re: ODMG vs. PB

2003-04-03 Thread Thomas Mahler
It's beacuse ODMG is a full fledged Object transaction manager. It does a full tracking of object states during transactions etc. This causes all the overhead. The real persistence work is done with the underlying PB API and is not slower than native PB operations. cheers, Thomas Jacob Hookom

StackOverflow

2003-04-03 Thread David . Corbin
Is it acceptable for OJB to cause a StackOverflow Exception (infinite recursion)? I get this when I do refresh=true on bidirectional references. The problem isn't there if you don't say refresh, but in that case, OJB doesn't produce reliable/consistent data. David This message contains

Re: OJB date = jdbc date is not saving time part(Scanned for viruses: NotesAdmin)

2003-04-03 Thread vberezniker
In the repository_*.xml file specify the type as TIMESTAMP but leave it as DATE in oracle. Sincerely, Vladimir Berezniker Sr. Programmer Analyst Staten Island University Hospital [EMAIL PROTECTED] 04/03/2003 06:39 PM Please respond to OJB Users List To: OJB Users List [EMAIL

RE: Separating LocalTxManager and JTATxManager Use

2003-04-03 Thread Andrew Gilbert
Armin, Thanks. Unfortunately, would seem to be stuck. Option 1 requires separate J2EE container instances, to get around singleton issues. We are not keen on this. We would like to retain option to deploy web and ejb apps to one container. Ideally would be able to bootstrap 1..N

RE: ODMG vs. PB

2003-04-03 Thread Gary Eberhart
I use both the PB and ODMG in the same accessor class. I use PB to do all the read only processing and then ODMG when I will be updating or adding to the database. I've only done a small bit of testing using this methodology however. cheers, gary -Original Message- From: [EMAIL PROTECTED]

repository.xml question

2003-04-03 Thread Bonnie MacKellar
Which of the files in the repository.xml hierarchy do I really need if I am using OJB in a servlet based app under Weblogic? I know I need repository.xml, repository_database.xml, and repository_user.xml. How about repository_junit.xml, repository_ejb.xml, repository_internal.xml, and

Re: StackOverflow

2003-04-03 Thread Oki DZ
On Thu, Apr 03, 2003 at 04:07:40PM -0500, [EMAIL PROTECTED] wrote: The problem isn't there if you don't say refresh, but in that case, OJB doesn't produce reliable/consistent data. Question is, can we expect that consistency is the responsibility of OJB? I think db consistency should be done

Help Deploying an OjbStorePMF factory on JBOSS

2003-04-03 Thread Christian Zumbiehl
Hi, I would like to have my OjbStorePMF factory properly deployed on a JBOSS server , unfortunately an appropriate MBean is not provided .. Should I use the (J2EE deployable) PBFactory and modify org.apache.ojb.jdori.sql.OjbStoreConnector so it looks up for PBFactory on a JNDI context ? If you

Nested field question

2003-04-03 Thread Gareth Cronin
I don't think I'm using PersistentNestedFieldMaxPerformanceImpl correctly. I have a property on a class Vehicle called tareWeight, of type Weight. Weight in turn has one property grainAmount of type long. I put the following field descriptor inside Vehicle: field-descriptor

using dynamic proxies

2003-04-03 Thread Mauricio CASTRO
In the sectionusing dynamic proxies of the tutorial at http://db.apache.org/ojb/tutorial3.html , it says that a class descriptor is defined as follows:: class-descriptor class=org.apache.ojb.broker.Article proxy=dynamic table=Artikel Why class value is not set to

Using ODMG / OQL queries

2003-04-03 Thread Michael Harrison
Hello, again. Thanks to your help a few days ago I've gotten my installation of OJB into half-working order. I'm writing with another beginner's question. I've been trying to figure it out myself for a while, to no avail. I have a class I call ProfileSimple. It contains some member variables

Re: StackOverflow

2003-04-03 Thread Thomas Mahler
IMO yes! It's the users responsibility to carefully check the semantics of the mapping repository. If you define a cyclic structure OJB has no problem. But if you define a rule if A is Loaded then refresh also the referenced B object another rule if B is Loaded then refresh also the referenced

Re: Interbase/Firebird prepare-testdb problem

2003-04-03 Thread David Warnock
Jon, I can't help you with the torque issues. After that I tried using using the ojbcore-schema.sql to insert the default required tables into the firebird database skipping the test torque stuff. However, I got an error when doing that: GDS Exception. unsuccessful metadata update key size too

RE: Interbase/Firebird prepare-testdb problem

2003-04-03 Thread Jonathan Gray
Hi David, The following files were missing from the torque-3.0.jar for some reason: sql/load/interbase/row.vm sql/load/interbase/val.vm [TORQUE-GUYS] Is there a reason for this? The SQL seemed pretty straight forward so I just placed slightly modified copies of the postgres version of those