ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi everyone,
Does anybody have any experience to share regarding selecting and using a Persistence Storage Framework in Java?
At work we use JDeveloper with Oracle's ADF framework which works good enough for us but
a) it's not free
b) has a very large footprint.
What I have now, is a home project written entirely in Java with a need to store data in a MySQL database. My first impulse was to code everything using JDBC and then -- keeping in mind only the good aspects of ADF -- I started having second thoughts regarding the usage of a storage framework.
I think that the majority of available frameworks can be found in the following JavaSource.net page Having read the list, I am probably turning towards Cayenne, but I have a feeling that I am probably killing a fly with a machine-gun.
I've used Hibernate for years and have long been frustrated for the need to manually develop the ORM mappings even on a start-from-scratch schema, so the Cayenne promise of code generation for that purpose seems attractive. An advantage with these frameworks is that they provide a single API and work with many database platforms on the backend. In theory this lends a bit of portability in case you decide to switch away from MySQL. The important part of that last sentence being "In theory" -- it turns out that as you get deeper into the ORM aspect of your project, things like custom mappings for database-specific features creep into the code, etc.
But don't look at this as "killing a fly with a machine-gun"... its an important learning experience which you can use elsewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.