I wanna Store a Java Object directly in to a database table. For doing so I want to know that which data type should I take for a database table column and how it is possible to store a java object in to a Database table. If any body has idea, plz reply .
If you serialize an object, that essentially turns it into a byte (or data written to an OutputStream), and then you can use the SQL type BLOB. How do you insert a BLOB? Google for that. If you are using Hibernate (judging from your crosspost) this is especially easy to do. Your POJO could make methods that are backed by the same data:
There is no emoticon for what I am feeling!
Joined: Dec 28, 2005
Thks Jeff for ur kind suggestion,
I did the same ,but before ur reply and it is working fine.