I have scoured the websites and googled until my fingers are raw,
I need to know how to map a Java.util.Date() object to a mySQL DateTime
field.
When I do it I get an exception
java.rmi.RemoteException: The bean encountered a non-application exception.;
nested exception is:
java.rmi.RemoteException: Castor JDO DatabaseNotFoundException thrown when
attempting to begin a local transaciton; nested exception is:
I have a sneaking feeling that it is due to the mapping setup
the mapping I have is as follows
<class name="com.ingotz.j2ee.ejb.WebHitBean" identity="id">
<map-to table="ingotz_webhits"/>
<field name="id" type="long" direct="true">
<sql name="id" type="bigint"/>
</field>
<field name="host" type="string" direct="true">
<sql name="host" type="char"/>
</field>
<field name="page" type="string" direct="true">
<sql name="page" type="char"/>
</field>
<field name="crdate" type="Date" direct="true">
<sql name="dateofhit" type="DateTime"/>
</field>
</class>
I am using Openejb 0.9.2
with the Castor 0.9.5.2 jars
can anyone advise how to proceed (I am already looking into upgrading to the
latest of the jars.....)
Michael Forster
Ingotz Uk Ltd.
Tel: 07005006216
Fax: 07005006217
This email (and any attachments) is for the addressee only. It is
confidential and protected by copyright, any opinions/information are those
of the author and not Ingotz UK Ltd. Ingotz accepts no responsibility for
loss or damage (including by viruses) due to it's use. Ingotz reserves the
right to monitor emails with the lawful business practice regulations 2000.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004