• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ways of accessing database through java

 
Rajiv KumarRai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As per my knowledge there are two APIs to access database through java
i.e JDBC and Hibernate

Are there any other APIs to access database through java?

Thanks
 
Paul Clapham
Sheriff
Posts: 21551
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, that's not quite right. Because Hibernate uses JDBC to access the databases. So from one point of view there's only one API being used, namely JDBC.

However there are several other ORM (Object Relational Model) tools similar to Hibernate. I expect they all use JDBC under the covers as well. You could count them as "APIs to access databases through Java" as well if you like that point of view. However in that case you won't get an exact answer because anybody can write code which acts as a wrapper for JDBC.

There may be products which access databases in some way other than JDBC, but I'm not aware of them.
 
Rajiv KumarRai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to brush up on java database programming.
Hence i wanted to know what all topics I need to cover
and i came up with just JDBC and Hibernate as these
are the most prevalent tools/APIs for java database programming..

Hope I am not missing anything
 
Dave Tolls
Ranch Hand
Posts: 2091
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can replace Hibernate with JPA, which Hibernate implements.
That way you cover a lot more bases than a Hibernate-specific study.
 
Rajiv KumarRai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your replies

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic