File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes How to save Java Object to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to save Java Object to database" Watch "How to save Java Object to database" New topic
Author

How to save Java Object to database

A.G Rajkotia
Greenhorn

Joined: Aug 11, 2011
Posts: 28
Can someone tell me how do we save java objects to database ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

That is an area known as ORM (Object-Relational Mapping), and has its own forum, so I've moved this question to that forum for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
A.G Rajkotia
Greenhorn

Joined: Aug 11, 2011
Posts: 28
can this be done using jdbc
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Sure, you'll just have to manage the object-to-relational mapping yourself. (Which is a pain in the neck, hence the existence of ORM tools.)
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

JDBC traditionally uses SQL and stored procedures to access relational databases.

http://docs.oracle.com/javase/tutorial/jdbc/basics/index.html

The industry is moving towards other forms of database, like object and graph.
If you are after a true object DB, check out something like http://www.db4o.com/ but there are quite a few others out there.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to save Java Object to database
 
Similar Threads
how to save files into oracle database using java as a object.
image uploading in jsp
How save canvas element?
Welcome to Daryl Wilding-McBride
Saving to a text file!