| Author |
A question for the authors present this week
|
Rodrigo Bossini
Ranch Hand
Joined: Jul 03, 2009
Posts: 106
|
|
Hi,
Today we have many applications that use regular JDBC connections. I'd like to know how worth it would be to migrate them to use JPA. What would be the advantages?
Thank you.
|
I see wind mills
|
 |
Mike Keith
author
Ranch Hand
Joined: Jul 14, 2005
Posts: 304
|
|
|
It really depends on the application. If you convert the result sets to objects, and find that you need to keep maintaining your JDBC layer and that it is growing in size and complexity, it is probably a good candidate for being migrated to JPA. On the other hand, if it is pretty much doing what you need it to do and you are happy with it in terms of its performance and maintainability then don't change what isn't broken. JPA becomes advantageous for applications that have data that maps to object graphs (with relationships), that execute multiple kinds of queries over the objects, and that regularly navigate the object model. Because JPA providers do a lot of caching in memory, JPA tends to perform better than JDBC when there is more object reuse.
|
-Mike
Pro JPA 2: Mastering the Java Persistence API
|
 |
 |
|
|
subject: A question for the authors present this week
|
|
|