If you want to store the whole object in a field, the field must be declared 
of type OTHER and the object must be serializable. You can then use a 
PreparedStatement and the setObject() method to insert the object into the 
table.


Fred

----- Original Message ----- 
From: "Mokhtar Gharbi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 03 October 2004 19:51
Subject: [Hsqldb-developers] store java object in DB


Hi,
i'm using hsqldb with my application, and want to store a Java object in a
table of my DB.
how can i do ? serialization ? can you give me an exemple.
thanks
GHARBI Mokhtar


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers 



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers

Reply via email to