How to easily store java objects in a database? plus a few design issues?
843859Nov 2 2009 — edited Nov 20 2014hello
A question plus few issues.
Providing i got all the basic connection setup for java to db, How can you easily store Java objects in a database? Looked about & saw plenty examples talking about deserialize the object and store as a blob? (Ok i'm confused at this bit). Sounds complex to me. So was thinking, surely must be an efficient way of doing this...
Having said that, a few design issues comes to mind:
Firstly, i read a post (on yahoo answers) storing objects in DB is a kind of bad design and we should opt for good design by having the database to do all the work i.e. not storing as objs but as plain text strings (just as you normally would..), So is this Good Design?? - Am asking cause i'm no Database expert.
Secondly, relating to 1st issue, what would be the proper/good design of a Database to interact with by a Java Application? where there is a need for an app to store data in DB.
regards