Since you have your database question answered (DB2) I'll give my opinion on
JDO or JPA.

I'm not sure if you're using an application server, a servlet container or
running in SE. Either way I would lean towards using JPA. Any Java EE 5 or
above application server has JPA integrated. I know WebSphere Application
Server uses OpenJPA for the JPA implementation.

Both JDO and JPA are just API's. I'm not as familiar with JDO so I don't
know what implementations are out there. I tend to favour JPA as I'm more
familiar with it and it seems to have plenty of implementations. To me JPA
is probably a little more portable since it generates the SQL out of JPQL.

All that said, it really depends on what you are doing. If you're working
with a denormalized database, sometimes JPA is a bit of a pain and standard
JDBC with custom SQL is much better.

--
James R. Perkins


On Fri, Aug 19, 2011 at 02:34, MANUEL FIDALGO SICILIA <
manuel.fidalgo@xxxxxxxxxxxxxxxxxx> wrote:

Dear all,

Foremost, I would like to say that I'm new to the AS/400 world so sorry
if I ask stupid things...

At work we are using v6r1m0 and we would to write some Java programs
using the AS/400 as database.

The problem comes when deciding what persistence engine to use: I can't
see clearly if the AS/400 is relational or non-relational and I would
like to know which should be better JPA or JDO. I know some people use
JPA but I'm wondering if it is not better to use JDO which has support
for both relational and non-relational and if JPA will have performance
problems because it is made for relational.

So what do you think? JDO or JPA? Or maybe just jdbc!

Thanks in advance!



Jose Manuel

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.