How do you save a java object in database

Showing Answers 1 - 6 of 6 Answers

jingboliu

  • Sep 24th, 2007
 

1. Please make sure the java object is serializable
2. Serialize the java object into a file
3. Store the content of the file to relational database as Blob

  Was this answer useful?  Yes

koti

  • Sep 9th, 2012
 

u store the object of a class in database. but database is meant for storing the values in the table format. for that reason only sun introduced JNDI for storing the object. by using this concept u can store the object in registry software. with that u can provide the global visibility also

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions