users@glassfish.java.net

RE: how to use JPA in standalone java SE project?

From: Markus Karg <karg_at_quipsy.de>
Date: Tue, 24 Jun 2008 16:45:18 +0200

JDBC is an abstract interface for relational database management system. It makes your application unaware of the particular RDBMS product. Your application will need to deal with SQL and tables. The core idea is that you deal with rows and columns. Compared to JPA the programming is more complex but there is less overhead since there is no O/R wrapping.

JPA is an abstract interface for object relational mappers. It makes your application unaware of the particular O/R mapper product. Your application will need to deal with an objectoriented query langage and entities. The core idea is that you deal with Java Objects. Compared to JDBC the programming is more object oriented and such easier to read, but you have less control over the real SQL that runs and there is potentially larger overhead due to automatic O/R wrapping.

-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Dienstag, 24. Juni 2008 16:47
To: users_at_glassfish.dev.java.net
Subject: how to use JPA in standalone java SE project?

Comparing to JDBC, what is the pros and cons for each? Thanks.
[Message sent by forum member 'bobxu' (bobxu)]

http://forums.java.net/jive/thread.jspa?messageID=282254

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net