Hello 
I 'm trying to split a table into many classes which are containing only a
part of the datas .
TABLE TT: 
NUMBER ID
VARCHAR NAME
VARCHAR DESCR
BLOB    DATA

I want to have 2 classes one containing a small description ( ID , NAME and
DESCR) and the other one 
Containing the data ( ID and BLOB ) 
It's easy to do it in the repository 
        <class-descriptor class="ttdescription" table="TT">
                <field-descriptor name="id" column="ID" jdbc-type="BIGINT"
primarykey="true"/>
                <field-descriptor name="name" column="NAME"
jdbc-type="VARCHAR"/>
                <field-descriptor name="description" column="DESCRIPTION"
jdbc-type="VARCHAR"/>
        </class-descriptor>
        <class-descriptor class="ttData" table="TT">
                <field-descriptor name="contents" column="DATA"
jdbc-type="BLOB"/>
                <field-descriptor name="id" column="ID" jdbc-type="BIGINT"
primarykey="true"/>
        </class-descriptor>

My problem is when I try to load all the ttdescription, the BROKER generate
a request which is also containing the fields described in the ttData
instead of limiting the select to the values of the column in ttdescription.

Is it normal ? Do I have to manualy change the query for removing the not
pertinent columns ?

I'm using the cvs source of Ojb in the front of a Oracle 9i DB .

B.R 

Thierry 




-----Original Message-----
From: A Leg [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2003 9:23 AM
To: OJB Users List
Subject: Re: problem with tutorial part 4 example


Thomas

Thank's again Thomas
I got it yesterday on the Sun web site.
The Antonio link is the good one.

To keep going I will download the 1.0.

Cheers

Andre

Thomas Mahler wrote:

> Hi again Andre,
>
> Where exactly di you get this 1.0.1 version?
>
> Our stuff was build against the 1.0 version
> (jdori-1_0-fcs-src-04_Mar_2002.zip):
> http://jcp.org/aboutJava/communityprocess/final/jsr012/index.html
>
> Please point me to the 1.0.1 release and I'll check if there are any
> compilation problems.
>
> cu,
> Thomas
>
> A Leg wrote:
>
>> Hi
>>
>> I am learning ojb and for that, first looking tutorials and running
>> examples.
>>
>> I have dowladed from Sun jdo-1_0_1-ri.zip
>> And copy all jar under db-ojb-1.0.rc4/lib
>>
>> When I want to compile the JDO example I get :
>>
>> bin/build.sh with-jdori prepare-tutorials enhance-jdori
>> Buildfile: build.xml
>>
>> splash:
>>
>> set-archive-name:
>>
>> set-archive-name-date:
>>
>> detect-jdk:
>>
>> check-jdk12proxy-classes:
>>
>> check-jndi-classes:
>>
>> use-jdk12:
>>
>> use-jdk13:
>>
>> use-jdk14:
>> [echo] detected JDK 1.4
>>
>> init:
>>
>> prepare:
>> [copy] Copying 4 files to
>> /home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/srctest
>>
>> check-jdo-classes:
>>
>> check-jdori-classes:
>>
>> with-jdori:
>> [copy] Copying 16 files to
>> /home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src
>> [copy] Copying 1 file to 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/tu
torial5 
>>
>>
>> splash:
>>
>> set-archive-name:
>>
>> set-archive-name-date:
>>
>> detect-jdk:
>>
>> check-jdk12proxy-classes:
>>
>> check-jndi-classes:
>>
>> use-jdk12:
>>
>> use-jdk13:
>>
>> use-jdk14:
>> [echo] detected JDK 1.4
>>
>> init:
>>
>> prepare:
>>
>> check-j2ee-classes:
>>
>> preprocess:
>> [echo] using switches: +JDK13, +JDBC30
>> [java]
>>
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
................................ 
>>
>> [java]
>>
............................................................................
............................................................................
............................................................................
............................... 
>>
>>
>> main:
>> [javac] Compiling 564 source files to
>> /home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/classes
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbStoreManager.java:76: 
>> cannot resolve symbol
>> [javac] symbol : class RuntimeJDOModelFactoryImpl
>> [javac] location: package jdo
>> [javac] import 
>> com.sun.jdori.common.model.jdo.RuntimeJDOModelFactoryImpl;
>> [javac] ^
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbStoreManager.java:80: 
>> cannot resolve symbol
>> [javac] symbol : class JDOModelException
>> [javac] location: package jdo
>> [javac] import com.sun.jdori.model.jdo.JDOModelException;
>> [javac] ^
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbFieldManager.java:64: 
>> cannot resolve symbol
>> [javac] symbol : class RuntimeJDOModelFactoryImpl
>> [javac] location: package jdo
>> [javac] import 
>> com.sun.jdori.common.model.jdo.RuntimeJDOModelFactoryImpl;
>> [javac] ^
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbFieldManager.java:68: 
>> cannot resolve symbol
>> [javac] symbol : class JDOModelException
>> [javac] location: package jdo
>> [javac] import com.sun.jdori.model.jdo.JDOModelException;
>> [javac] ^
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbStoreManager.java:252: 
>> cannot resolve symbol
>> [javac] symbol : variable RuntimeJDOModelFactoryImpl
>> [javac] location: class org.apache.ojb.jdori.sql.OjbStoreManager
>> [javac] JDOModel m = 
>> RuntimeJDOModelFactoryImpl.getInstance().getJDOModel(cl);
>> [javac] ^
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbStoreManager.java:255: 
>> cannot resolve symbol
>> [javac] symbol : class JDOModelException
>> [javac] location: class org.apache.ojb.jdori.sql.OjbStoreManager
>> [javac] catch (JDOModelException ex)
>> [javac] ^
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbFieldManager.java:289: 
>> cannot resolve symbol
>> [javac] symbol : variable RuntimeJDOModelFactoryImpl
>> [javac] location: class org.apache.ojb.jdori.sql.OjbFieldManager
>> [javac] JDOModel m = 
>> RuntimeJDOModelFactoryImpl.getInstance().getJDOModel(cl);
>> [javac] ^
>> [javac] 
>>
/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/target/src/org/apache/ojb/jd
ori/sql/OjbFieldManager.java:292: 
>> cannot resolve symbol
>> [javac] symbol : class JDOModelException
>> [javac] location: class org.apache.ojb.jdori.sql.OjbFieldManager
>> [javac] catch (JDOModelException ex)
>> [javac] ^
>> [javac] 8 errors
>>
>> BUILD FAILED
>> file:/home/rcs/Master/extern/java/ojb/db-ojb-1.0.rc4/build.xml:218:
>> Compile failed; see the compiler error output for details.
>>
>> Total time: 1 minute 39 seconds
>>
>> Thanks for any help
>>
>> Andre Legendre
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to