Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to save Java Object to database

 
A.G Rajkotia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me how do we save java objects to database ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64606
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
A.G Rajkotia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can this be done using jdbc
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64606
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic