Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to easily store java objects in a database? plus a few design issues?

843859Nov 2 2009 — edited Nov 20 2014
hello

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2010
Added on Nov 2 2009
8 comments
841 views