Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

Best way to handle persistance?  Web frameworks?

Thread view: 
Kenneth P. Turvey - 18 Oct 2007 10:12 GMT
I picked up a book on hibernate the other day.  I've decided to stop
writing my own persistence layer every time I need one.  So I also looked
on the web and found out that Java now has the Java Persistence API.
Hmm..  A friend of mine says that the way to handle these tasks today is
with AOP, something else I'm unfamiliar with.  

So, what is the general consensus?  What is the best way to handle
persistence in Java today?

And while we're on the subject.. what is the best framework for doing web
programming today?  Why?  

Thanks.

Signature

Kenneth P. Turvey <kt-usenet@squeakydolphin.com>

Wayne - 18 Oct 2007 10:25 GMT
> I picked up a book on hibernate the other day.  I've decided to stop
> writing my own persistence layer every time I need one.  So I also looked
[quoted text clipped - 4 lines]
> So, what is the general consensus?  What is the best way to handle
> persistence in Java today?

> ...

Java SE also has a preferences API, great when all you need is
to persist a small amount of data (e.g., window positions, user
selected options, etc.)

Java SE also supports (the Apache Derby) database, either as an
embedded DB or (with more configuration effort) a stand-alone DB.

Using either may be an alternative option to EE solutions and frameworks.

-Wayne
Kenneth P. Turvey - 18 Oct 2007 11:01 GMT
> Java SE also has a preferences API, great when all you need is
> to persist a small amount of data (e.g., window positions, user
> selected options, etc.)

Yeah, I use preferences all the time.  They're terrific for this sort of
data.

> Java SE also supports (the Apache Derby) database, either as an
> embedded DB or (with more configuration effort) a stand-alone DB.
>
> Using either may be an alternative option to EE solutions and frameworks.

I've just started using derby.  Before that I often used hsqldb.  They are
both great tools.  The problem is that from the client end these still
look like full fledged SQL databases.  With hibernate you can hide some of
that, and make your code more portable.  

Ideally, I'd like a solution that hides most of the database stuff and
allows nearly complete portability.  The end user should be able to select
which database back end they want to use with my product and everything
should still work.  This just isn't possible with hand crafted SQL.  

It really sucks that we have a standard language for handling database
queries and construction, but that it doesn't do us any good in writing
portable code.  If every C compiler was different to the degree that SQL
implementations are, we would still be using FORTRAN.

Signature

Kenneth P. Turvey <kt-usenet@squeakydolphin.com>



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.