LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2009, 04:44 AM   #1
abakalidis
LQ Newbie
 
Registered: Jun 2006
Location: Komotini, Greece
Distribution: Fedora 11 (CentOS 5.x)
Posts: 13
Thanked: 2
Java: Selecting a Persistence Storage Framework


[Log in to get rid of this advertisement]

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.

Any thoughts / advice will be most welcome.

Athanassios.
abakalidis is offline     Reply With Quote
Old 06-30-2009, 10:46 AM   #2
kellinwood
Member
 
Registered: Jan 2006
Location: Culver City, California
Distribution: Fedora
Posts: 64
Thanked: 6
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.

Ken
kellinwood is offline     Reply With Quote
Old 07-01-2009, 04:33 AM   #3
abakalidis
LQ Newbie
 
Registered: Jun 2006
Location: Komotini, Greece
Distribution: Fedora 11 (CentOS 5.x)
Posts: 13
Thanked: 2

Original Poster
Thanks Ken,
I needed that kind of feedback. So Cayenne it is then.

Athanassios
abakalidis is offline     Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Java Media Framework (JMF) on Ubuntu tram Linux - Software 5 02-03-2010 05:50 AM
selecting python framework mohtasham1983 Programming 1 02-07-2008 08:04 PM
Java/KDE Application Framework Problem in KDevelop 3.0 corpus_delicti Linux - Software 1 08-29-2004 01:53 PM
help me register JMF (Java Media Framework) vanhelsing Programming 0 08-02-2004 01:22 PM
Linux and Java + Java Media Framework (JMF) perry Programming 0 11-03-2003 11:08 AM


All times are GMT -5. The time now is 06:02 PM.

Main Menu
My LQ
Write for LQ
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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration