13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14.7 Bey<strong>on</strong>d the Basics321Hibernate 4Hibernate is probably the most widely known Open Source persistenceframework. It is released under the LGPL license.OJB 5 Billed as “Object Relati<strong>on</strong>al Bridge,” this <strong>on</strong>e is from Apache. It providesboth an ODMG (a persistence API much used in the C++ world) and aJDO (Java Data Objects—Sun’s object persistence API specificati<strong>on</strong>) API.Castor 6Castor does persistence to both XML and relati<strong>on</strong>al databases. They calltheir RDBMS persistence framework “JDO,” but beware: It is not compatiblewith or identical to Sun’s JDO. They say it is better.pBeans 7pBeans does fully automated persistence of JavaBeans. You have to followthe rules for writing beans (not EJBs, but the “classic” JavaBeans), but<strong>on</strong>ce d<strong>on</strong>e, this will automatically persist your instances to any JDBCcompatibledatabase. No XML specificati<strong>on</strong>, no SQL scripting, no templates.For the easiest “just save my instance data” type of applicati<strong>on</strong>s,this can be a good choice. 8 This product even automates the creati<strong>on</strong> oftables, as we advocated above.Are there others? Heck, yes. Not all of them persist to relati<strong>on</strong>al databases.Some persist <strong>on</strong>ly to XML. Some to other databases like B-trees or the BerkeleyDB system. We didn’t c<strong>on</strong>cern ourselves with those. We also left off a coupleof libraries that appear not to have been developed for more than a coupleof years.4. http://www.hibernate.org/5. http://db.apache.org/ojb/6. http://castor.exolab.org/7. http://pbeans.sourceforge.net/8. But we are not endorsing here.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!