Here's the situation. I have a bunch of objects that implement Serializable
that I want to store in a SQL database. I have two questions
- Is there a way to serialize the object directly into the database
- Is that the best way to do it or should I
- Write the object out to a formatting
String
and put it in the database that way and then parse it back out - Write each member to the database with a field that is unique to each object
- Write the object out to a formatting