ok, now I understand that auto-completion only works with the XML-part of
Castor. Is there any JDO-specific Documentation on the mapping-XML-file?

I've extended my mapping to

<class name="com.tpsoft.lexikon.Word" identity="id" key-generator
="HIGH/LOW">
     <map-to table="words" xml="word" />
     <field name="id" type="integer" required="true">
          <sql field="id" type="integer" />
     </field>
     <field name="name" type="string" required="true">
          <sql field="name" type="varchar" />
     </field>
     <field name="description" type="string">
          <sql field="description" type="varchar" />
     </field>
</class>

but the other problem with the NullPointerException still exists. When
doing JDO.loadConfiguration() (it's the first statement in the Constructor
of my Test-Class) I get this Exception. I'm not entirely sure if he
succeeds in connecting to the Database (or if it even tries, shouldn't that
be done in jdo.getDatabase()?), but it should be able to connect, my
database.xml looks like that:

<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version
1.0//EN"
     "http://castor.exolab.org/jdo-conf.dtd";>
<database name="lexikon" engine="mysql" >
     <driver class-name="org.gjt.mm.mysql.Driver" url
="jdbc:mysql://localhost/lexikon" />
     <mapping href="mapping.xml" />
</database>

regards
Joachim Sauer



                                                                                       
                                                       
                    Keith Visco                                                        
                                                       
                    <kvisco@intal        An:     [EMAIL PROTECTED]                 
                                                       
                    io.com>              Kopie:                                        
                                                       
                                         Thema:  Re: [castor-dev] auto-completion      
                                                       
                    21.11.2001                                                         
                                                       
                    19:37                                                              
                                                       
                    Bitte                                                              
                                                       
                    antworten an                                                       
                                                       
                    castor-dev                                                         
                                                       
                                                                                       
                                                       
                                                                                       
                                                       




Hi Joachim,

Apparently auto-complete is not compatible with Castor-JDO, it uses
Castor XML introspector to create the field definitions, and therefore
it creates XMLFieldDescriptors. Castor-JDO is looking for
JDOFieldDescriptors.

Also..JDO requires table information not available using introspection.

So auto-complete is only for Castor-XML at this time.

Sorry for any confusion.

--Keith

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to