I want to convert an object into string to store it in databse as varchar. Also when I retrieve this string from database, I should be able to get the same object i.e string to object conversion should be possible. Has anyone done this? Please share your ideas....
Thanks in advance.
Petr Blahos
Ranch Hand
Joined: Apr 28, 2004
Posts: 131
posted
0
How about serializing the Object in a String?
P.
Get a better web browser:<br /><a href="http://www.mozilla.org/products/firefox/switch.html" target="_blank" rel="nofollow">http://www.mozilla.org/products/firefox/switch.html</a>
Tony Morris
Ranch Hand
Joined: Sep 24, 2003
Posts: 1608
posted
0
Serialize the object to a blob (java.sql.Blob) or use an O-R Mapping tool such as Hibernate.