Hello,

use java.sql.date!

Good luck,
Birgitta
Inactive hide details for Marco Josà <[EMAIL PROTECTED]>Marco Josà <[EMAIL PROTECTED]>




          Marco Josà <[EMAIL PROTECTED]>

          26.05.2004 17:13
          Bitte antworten an "OJB Users List"



An: <[EMAIL PROTECTED]>
Kopie:
Thema: ClassCastException when storing a Date


Hi.

Iâm working under Oracle9 and have a problem when I try to insert a
date.
I have already some data in the DB which was inserted with a SQL Client.
When I query these data with OJB, the dates are listed in the following
pattern: âyyyy-MM-ddâ.
Now when I insert a date into an object (java.util.Date) it uses the
pattern: âEEE, MMM dd HH:mm:ss Z yyyyâ and therefore the
PersistenceBroker throws a ClassCastException when trying to store this
object.
Can anybody tell me how to resolve this problem? Do I have to edit the
repository.xml file?


Thank you in advance,

Marco JosÃ



--- This message may contain confidential information or privileged material, and is intended only for the individual(s) named. If you are not a named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Critical Software.


(See attached file: InterScan_SafeStamp.txt)

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

<<inline: pic19169.gif>>

****** Message from InterScan E-Mail VirusWall NT ******

** No virus found in attached file noname.htm

INFO: Das eMail Gateway hat den Dateianhang nach Viren untersucht und fuer viruenfrei 
befunden. Zur eigenen Sicherheit sollten Sie jeden Dateianhang mit dem Virenscanner 
auf Ihrem Rechner ein zweites mal ueberpruefen!
*****************     End of message     ***************

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

Reply via email to