Re: Can use tranditional-Chinese in where condition of OQL?

2004-01-08 Thread Thomas Dudziak
Thomas updated the grammar in CVS to antlr 2.7.2 and unicode, so please grab OJB from CVS, and try your query again. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with reading records having a PK with value 0 (not null)

2004-01-08 Thread Alexandre Morin
Hi, It looks like OJB cannot fetch correctly records which have a BigInt primary key with value 0; at least in the following conditions; - I'm using RC5 - Have a table (here Locations) with a primary key Id with a auto-increment sequence - I'm using Oracle 9.2 - The table has a 1-N

Re: Problem with reading records having a PK with value 0 (not null)

2004-01-08 Thread Danilo Tommasina
Hi, I reported the same issue some months ago... The problem lies in the support for primitive data types, since a primitive type cannot be null, the value 0 is interpreted as null. It seems that non primitive data types also react the same way (even if they shouldn't, so from my point of view

AW: integrity constraint violation

2004-01-08 Thread Dirk Manske (Service Respond)
Hi there, can anyone give me a hint about my problem (see below)? if I have the following two tables *** * * * Table PERSON * *

Re: Problem with reading records having a PK with value 0 (not null)

2004-01-08 Thread Armin Waibel
Hi Danilo, Danilo Tommasina wrote: Hi, I reported the same issue some months ago... The problem lies in the support for primitive data types, since a primitive type cannot be null, the value 0 is interpreted as null. It seems that non primitive data types also react the same way (even if they

Re: History of OJB

2004-01-08 Thread Thomas Mahler
Hi Brian, Brian Sam-Bodden wrote: Thomas, Could you give us a short and sweet version of how OJB came to be? :-) Ok, here it goes. After working with several proprietary o/r layers I finally got the chance to work with ODMG compliant OO databases (POET and Objectivity) in a project. I was

RE: Problem with reading records having a PK with value 0 (not nu ll)

2004-01-08 Thread Alexandre Morin
I'm using a Long object to store the Id, so I thought 0 should be considered different than NULL. (BrokerHelper.isNull() consider this as null, though). In the mapping file, the field is declared with jdbc type BIGINT. I'm normally starting my sequences with 1, but there are places where I use the

Re: Problem with reading records having a PK with value 0 (not null)

2004-01-08 Thread Danilo Tommasina
Hi Armin, here a short example. create TABLE FOO ( TAB_ID INTEGER PRIMARY KEY ) and put an entry into the table with ID = 0 (from SQL not from OJB) /*/ repoistory.xml class-descriptor class=org.apache.ojb.test.Foo table=FOO field-descriptor name=tabId column=TAB_ID jdbc-type=DECIMAL

closing connections

2004-01-08 Thread Daniel Perry
I'm having a problem trying to release database connections. Here's what i understand of how it works I assume the PB opens data connections when it's first used. A connectionfactoryfactory is created, and connections are opened by the connectionfactory. Now, to shut down the database, i

RE: integrity constraint violation

2004-01-08 Thread Gelhar, Wallace Joseph
Hi Dirk, Can you post the relevant DDL and repository? Is the person-activity relation defined as a non-decomposed m-n relation? I suspect you have a constraint set in the DDL that prevents the relation from being stored. As far as the 0 is concerned, do you use a primitive int or an

`Single Proxy for a Whole Collection` problem

2004-01-08 Thread Andrei Ivanov
Hello, I've created a mapping like this: class-descriptor class=com.ines.flanco.model.ProductTO table=products field-descriptor name=id column=id jdbc-type=INTEGER nullable=false primarykey=true

RE: `Single Proxy for a Whole Collection` problem

2004-01-08 Thread oliver . matz
Hello, public class ProductTO implements java.io.Serializable { protected int id; protected String name; protected Vector symbols; 'Vector' is not a good idea. You should use an interface type such as Collection or List for the type declaration ... getters and setters...

AW: integrity constraint violation

2004-01-08 Thread Dirk Manske (Service Respond)
Hi Wally, thanks for your response. Below you will find ddl and repository. The relation is not defined as a non-decomposed m:n relation. And yes, I use a primitive int to store the pk. Should I give this special attention? For personId there is no reference-descriptor defined as I have only

RE: `Single Proxy for a Whole Collection` problem

2004-01-08 Thread oliver . matz
Hello, -Original Message- From: Andrei Ivanov [mailto:[EMAIL PROTECTED] I see here http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html that Vector implements the List interface, and I used Vector because it's that means that you can assign a Vector to a field of type

Data Type Cast When Perform the Join

2004-01-08 Thread Xu Jie
Hello, I have to do a simple one-to-one mapping with OJB. The key to perform the join from parent object is different from the child key. For example, in parent object the key is userID with type of CHAR, but the child object key childUserID is a type of BIGINT. Will OJB do any data cast in this

j2ee.jar

2004-01-08 Thread Daniel Perry
Not sure if i'm being rather inept, but i cant find the j2ee.jar file on suns site. Do i have to download the entire J2EE SDK? or can i get this file on it's own? Thanks, Daniel.

AW: j2ee.jar

2004-01-08 Thread André Kofaldt
You have to download the J2EE SDK! Cheers, André -Ursprüngliche Nachricht- Von: Daniel Perry [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8. Januar 2004 16:42 An: OJB Users List Betreff: j2ee.jar Not sure if i'm being rather inept, but i cant find the j2ee.jar file on suns site. Do

ojb query question

2004-01-08 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc5, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). How can I run a query that returns objects from a different class than the class to search from? For example: class Person{ int id;

Re: AW: j2ee.jar

2004-01-08 Thread Brian McCallister
I find the sun one so annoying to download that I grab it from JBoss and rename it ;-) -Brian On Jan 8, 2004, at 10:46 AM, André Kofaldt wrote: You have to download the J2EE SDK! Cheers, André -Ursprüngliche Nachricht- Von: Daniel Perry [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag,

Re: AW: j2ee.jar

2004-01-08 Thread Clay Mitchell
Are you talking about j2ee 1.3 or 1.4? because I've never been able to find the 1.4 jar without the whole app server... -Clay You have to download the J2EE SDK! Cheers, André -Ursprüngliche Nachricht- Von: Daniel Perry [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8. Januar

Re: AW: j2ee.jar

2004-01-08 Thread Daniel Perry
Not sure... whichever i need to compile OJB just installing the J2ee stuff... though i dont want their app server! Daniel. - Original Message - From: Clay Mitchell [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 3:50 PM Subject: Re: AW: j2ee.jar

Re: ConnectionFactoryPooledImpl - releaseAllResources

2004-01-08 Thread Daniel Perry
AHHH going mad. I think i know what's happeneing. I dont think there's a problem with OJB afterall. I'm storing objects with proxied collections in an HTTPSession. Am i right in thinking that these will have references that will cause the database to maintain connections even if the

Re: ConnectionFactoryPooledImpl - releaseAllResources

2004-01-08 Thread Armin Waibel
Hi Daniel, I'm not sure what's the problem in your case, but I think it's OJB. The connection/pooling stuff needs some refactoring before 1.1 ;-) In your previous mail you said Now, to get at the connection factory i use: ConnectionFactoryFactory.getInstance().createConnectionFactory()

Re: Fwd: Using a non-existent collection inside a query

2004-01-08 Thread Jakob Braeuchi
Edson Carlos Ericksson Richter wrote: (sorry, was a momentary lapse of reason when I clicked the send button). Hi! I'm facing a problem: I've a nice piece of sofware that load modules at runtime. Mostly, each module has their own .xml file with necessary configuration. So, there are no

How JDO knows about my DB ?

2004-01-08 Thread Hubert Behaghel
Hi, I'm trying to get a simple application running with the jdo-api. I went through the .java generation, the .jdo and the repository.xml generation... Now, I want to enhance my persistent .class as described in the .jdo. But the process fails with a Timeout connection. In fact I have never

ERROR: Invalid UNICODE character sequence found (0xc000)

2004-01-08 Thread Antonio Gallardo
Hi: I am getting this error while quering a simple table in a PostgreSQL database. Interesting enough the error does not happen when we access the database using other JDBC application. The database was coded using: createdb -E UNICODE myDBname If I sent in the following code the variable