Re: Java Hibernate
KeeKee wrote:
Could anyone provide some suggestion or opinion about Java Hibernate ?
Which approach is the best or the the first step for beginner ? I just
started with Java Hibernate and don't know the direction. Should I
learn Hibernate with Servlet/JSP or
You normally would not call Hibernate-managed objects directly from a
servlet (including JSPs). You employ Hibernate entity objects and
methods in the domain-logic ("model") layer of the application. The
servlets (JSPs) interact only with results of that logic. Read about
the "Model 2" MVC (Model-View-Controller) architecture on java.sun.com
and elsewhere. (GIYF)
<http://en.wikipedia.org/wiki/Model_2>
<http://java.sun.com/blueprints/guidelines/
designing_enterprise_applications_2e/web-tier/web-tier5.html>
<http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html>
Hibernate/JDBC or Hibernate/MySql [sic] etc.
Hibernate interacts with JDBC. It only cares slightly whether the
JDBC connection is to MySQL, PostgreSQL, Oracle, Derby (a.k.a. Java
DB) or whatever. Start with Java DB (a.k.a. Derby) since it does not
require a separate download.
I use eclipse [sic] to program Java EE and I like to be good in Java Hibernate,
Start by reading, then studying the documentation at
<http://www.hibernate.org/>
Read and study the "Persistence" section of the Java EE tutorial.
<http://java.sun.com/javaee/5/docs/tutorial/doc/bnbpy.html>
--
Lew