Re: Java Hibernate
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)
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
Read and study the "Persistence" section of the Java EE tutorial.