I echo Dave's sentiment, but you need to determine what your data access
needs are before deciding one way or another.
Many people really like the ORM approach using something like Hibernate.
Others like pure JDBC, or at least *close* to pure JDBC, which is an
area Spring can help in (it can help with Hibernate too as I understand
it, but I have no experience there). Still others like something
*roughly* in between like iBatis.
If you have an existing database, my experience is that you might be
better off going closer to the pure JDBC approach. I've found that
using Hibernate (and I presume any ORM tool) with an existing database
can *sometimes* lead to frustrations and designs that aren't as good as
they otherwise could be. This in no way is saying you *can't* use
Hibernate with existing databases, of course you can, but it may not be
the best choice.
If your starting with no database, I think it probably comes down more
to philosophy than anything else. If you'd like to make your database
model your domain objects, then something like Hibernate will probably
serve you well. If you prefer to hammer out the database schema first
and develop the app to consume it, you may want to go the other way.
I'm always a little concerned using Hibernate and similar tools because
I've never been convinced they perform as well as getting "closer to the
metal" allows you to. I'm not a fan, in *most* cases, of trusting tools
to essentially write code for me, which SQL is a form of IMO. Still,
I've used Hibernate a few times and had success with it, so it can't be
that bad, can it?? :) Still, if I was writing a high-volume
transactional system, I think I'd be leaning away from an ORM package,
so it comes down to my first sentence: determine what your needs really
are first, then look at the alternatives.
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
(2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
rama krishna yalagandula wrote:
------=_Part_42524_19997682.1190414900433
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Hi,
I am new to struts 2.0.9 ... Earlier I worked on oracle Developer Tools ..
Now we have to migrate From Oracle to Java Struts.... I need to connect to
database several times so do I need to use Spring Frame Work(as I heared
from my supervisor)
Thanks in advance
Regards
Rama...
------=_Part_42524_19997682.1190414900433--
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]