I have a HashMap of a following structure:
HashMap<Integer, int[]> map = new HashMap<Integer, int[]>();
What is the best way to store it in derby database so I can recreate the hash map using data from the database?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t store the object directly, but you can serialize it to Inputstream and insert it as a BLOB into your database. Then you retrieve it later and deserialize again.