Hi again,
if I leave out the sql-time this error does not appear, but another
one I don't know what to do with:

org.exolab.castor.mapping.MappingException: Field element, 
"org.exolab.castor.types.Date"  not found!
        at org.exolab.castor.persist.DatingService.close(DatingService.java:127)
        at org.exolab.castor.persist.ClassMolder.resolve(ClassMolder.java:522)
        at org.exolab.castor.persist.LockEngine.<init>(LockEngine.java:168)
        at 
org.exolab.castor.persist.PersistenceEngineFactory.createEngine(PersistenceEngineFactory.java:83)
        at 
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java:204)
        at 
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java:163)
        at 
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:289)
        at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:583)

Now I defined all xs:date fields like this:
    <field name="..." type="org.exolab.castor.types.Date">
      <sql name="..."/>
      <bind-xml name="..." />
    </field>

all xs:time fields like this:
    <field name="..." type="org.exolab.castor.types.Time">
      <sql name="..." />
      <bind-xml name="..." />
    </field>

and all xs:dateTime fields like this
    <field name="..." type="date" required="true">
      <sql name="..." type="timestamp"/>
      <bind-xml name="..." />
    </field>

Any ideas what's going wrong here?

Marc.


ML> Hi!
ML> I've got a big problem and need a quick solution for this.
ML> In the mapping file I declare a field like this (used latest CVS):

ML> <field name="kbpuhrzeit" type="org.exolab.castor.types.Time">
ML>   <sql name="KBPUHRZEIT" type="time"/>
ML>   <bind-xml name="uhrzeit" />
ML> </field>

ML> Castor says:
ML> org.exolab.castor.mapping.MappingException: No convertor exists for converting 
type java.sql.Time to type org.exolab.castor.types.Time
ML>         at org.exolab.castor.jdo.engine.SQLTypes.getConvertor(SQLTypes.java:500)
ML>         at 
org.exolab.castor.jdo.engine.JDOMappingLoader.getTypeInfo(JDOMappingLoader.java:262)
ML>         at 
org.exolab.castor.mapping.loader.MappingLoader.createFieldDesc(MappingLoader.java:624)
ML>         at 
org.exolab.castor.jdo.engine.JDOMappingLoader.createFieldDesc(JDOMappingLoader.java:286)

ML> What do I have to do? Tried to leave out the field-type, used Date,
ML> org.exolab.castor.types.Date, but nothing works. Classes are generated
ML> from an XSD. In the XSD the type is "xs:time". Need quick help, please.

ML> Thanks in advance,
ML> Marc.

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

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

Reply via email to