advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Partners & Affiliates
advertisement
advertisement
Average Rating: 4.6/5 | Rate this item | 5 users have rated this item.
 Print Print
 
Sizing Up Open Source Java Persistence
Confused and puzzled by the plethora of persistence options in Java? You are not alone. Examine how some popular open source persistence frameworks stack up against one another and JDBC. 

advertisement
few months ago, I was teaching a class on JDBC. After a particularly tedious JDBC lab, I alluded to the existence of many Java persistence frameworks to help Java developers avoid some of the tedious and error-prone JDBC coding to help get Java objects in and out of a relational database. I was asked, "Which is best?" My response was the standard instructor/consultant answer: "Well, it depends." I could tell by their facial expressions that my answer was less than satisfactory. There are some differences in the way each performs the work, but the results are supposed to be the same; at least in the general notion of getting data in and out of the database.

What follows is a study I have made over the past few months to more suitably answer the question posed by my students and others looking at Java persistence options. This is not an article that will teach you how to persist Java objects in each of the technologies; although the attached code provides a couple of examples in each framework that may help in that endeavor. Instead, this article considers the following questions:

  • How easy is it to obtain and setup the persistence frameworks?
  • What is the learning curve for each framework? Are there ample resources for help and support when using the frameworks?
  • How well do the frameworks adapt to existing database and object models?
  • How does each framework perform?
  • What's the impact of the frameworks on the amount of Java code, configuration files, and byte code footprint?
  • How do the frameworks deal with persistent objects across transactions?
  • Do the frameworks assist with cascading operations across object relationships?
Is there a clear winner or choice for your project? Is there a Java persistence framework that can claimed the title of "Best-in-breed"? Unfortunately, as you will see, the answer to "which framework is best" might still be "it depends." In fact, as you will also see, there are a lot of caveats and footnotes in my results. A direct comparison is possible, but not under the exact same conditions in all cases—thus the need to qualify the results. However, I do think you will find the results a good reference for understanding some of the strengths and weaknesses of the frameworks and a good place to start when examining Java persistence options. If for no other reason, the code and information provided with this article can help you more quickly devise your own tests.

  Next Page: The Contenders
Page 1: IntroductionPage 4: Performance
Page 2: The ContendersPage 5: Entity Relationships and Cascade Operations
Page 3: Learning Curve and SupportPage 6: Object State
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES