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
.



Relevant Pages

  • Re: Does the DataSet have a future?
    ... I believe Java will not be able to catch .NET. ... >>I have recently finished reading 'Hibernate In Action' by Christian Bauer ... >> Is a true ORM solution superior to the DataSet, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: O/R Hell
    ... and I don't need to worry about the back-end database changing - it ... Seems far easier than Hibernate. ... for the job i.e. writing stored procedures using the DB vendor's tools ... Java doesn't seem to be getting that much easier. ...
    (comp.lang.java.programmer)
  • searching for yoda - a developers tale
    ... I've been a Java developer for a great long while, ... I'm made aware of eclipse ... come to like Hibernate. ... one can make Java generate the mapping file if one uses XDoclet ...
    (comp.lang.java.programmer)
  • Java Architects - Immediate Opening
    ... Java, J2ee, spring, hibernate. ... Experience in jsf, ...
    (comp.lang.java.programmer)
  • Java Architects - Immediate Opening
    ... Java, J2ee, spring, hibernate. ... Experience in jsf, ...
    (comp.lang.java.help)

Loading