f1wade
f1wade

Reputation: 2967

J2SE and Database Access

Hi. I am writing a standalone java app, and I want to access a database for persistance, but I couldn't find a good tutorial on what to use, and, the current best/fastest way to do this.

Can anyone point me in the right direction, please?

Upvotes: 1

Views: 587

Answers (5)

Low Flying Pelican
Low Flying Pelican

Reputation: 6054

I believe it's good idea to use some sort of persistent framework like Hibernate in order to do access database for persistence. This would be much faster and more clean than using plain JDBC and it would be easy to maintain.

this is one simple tutorial,

http://www.skill-guru.com/blog/2009/08/05/first-hibernate-tutorial-%E2%80%93get-hands-on-experience/

http://www.skill-guru.com/blog/2009/10/06/hibernate-tutorial-part-ii/

Upvotes: 0

gprathour
gprathour

Reputation: 15333

The best and simple way to for accessing database is JDBC. But for more complex appliactions you can use Hibernate.

Upvotes: 0

Manish
Manish

Reputation: 3968

You can use plain JDBC for connecting to database. More information about JDBC can be found here

If you want to go with Object Oriented approach, you can use EJB3/JPA or Hibernate.

Upvotes: 0

KV Prajapati
KV Prajapati

Reputation: 94653

Take a look at JDBC Tutorial - JDBC Basics

Upvotes: 2

belgther
belgther

Reputation: 2534

JDBC is the basic way for accessing the database from Java.

Upvotes: 0

Related Questions