hey list,

I'm trying to figure out what I'm doing wrong here... been thinking about
it and searching for a few hours without much progress, so hopefully
someone can help me out.

Firstly, I have the misfortune to be running against SQL server, using
ODBC )o:  I've got the easysoft driver atm, but will have to sort
something better out I think.  Anyway, I have a Card object, and one
of the fields in the database is a datetime datatype, which I assume maps
to a timestamp.  Anyway, when I put the following in my mapping file, I
get an error:

    <field name="creationDate" type="java.sql.Timestamp">
      <sql name="CreationDate" type="timestamp" />
    </field>

The error is Field element, "java.sql.Timestamp" not found!  I'm sure its
something simple that I've missed, so a simple prod in the right direction
should be ample.

btw I have the following in the Card object:

    public Timestamp getCreationDate() 
    {
        return creationDate;
    }
    
    public void setCreationDate(Timestamp v) 
    {
        creationDate = v;
    }


tia,
cheesr
dim

ps - full stack trace below, sorry about the formatting

2001-09-21 02:24:45,660 INFO  [main] web.InitServlet
(InitServlet.java:42) - Logging configured.
2001-09-21 02:24:50,380 FATAL [main] web.InitServlet
(InitServlet.java:61) - Unable to open database: Field element,
"java.sql.Timestamp"  not found!
org.exolab.castor.mapping.MappingException: Field element,
"java.sql.Timestamp"  not found!
        at
org.exolab.castor.persist.DatingService.close(DatingService.java:127)
        at
org.exolab.castor.persist.ClassMolder.resolve(ClassMolder.java:516)
        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:538)
        at au.com.telecash.logic.CardManager.open(CardManager.java:70)
        at au.com.telecash.web.InitServlet.init(InitServlet.java:56)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:856)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3292)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3402)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)

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

Reply via email to