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.
Joined: Apr 28, 2004
How about serializing the Object in a String?
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>
Joined: Sep 24, 2003
Serialize the object to a blob (java.sql.Blob) or use an O-R Mapping tool such as Hibernate.