LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 06-30-2009, 03:44 AM   #1
abakalidis
LQ Newbie
 
Registered: Jun 2006
Location: Komotini, Greece
Distribution: Fedora 11 (CentOS 5.x)
Posts: 13

Rep: Reputation: 1
Java: Selecting a Persistence Storage Framework



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.
 
Old 06-30-2009, 09:46 AM   #2
kellinwood
Member
 
Registered: Jan 2006
Location: Culver City, California
Distribution: Fedora
Posts: 64

Rep: Reputation: 21
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
 
Old 07-01-2009, 03:33 AM   #3
abakalidis
LQ Newbie
 
Registered: Jun 2006
Location: Komotini, Greece
Distribution: Fedora 11 (CentOS 5.x)
Posts: 13

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

Athanassios
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 09:37 AM.

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