Hibernate Reference Documentation

Category: Technical


<< Buy This Book on Amazon >>

430 views since 2007-05-11, updated at 2007-07-27. Bookmark this: Hibernate Reference Documentation

Description


. Introduction to Hibernate      
  
  
  

1.1. Preface

  
  

This

chapter is an introductory tutorial for new users of Hibernate. We

start with a simple command line application using an in-memory

database and develop it in easy to understand steps.

  

This

tutorial is intended for new users of Hibernate but requires Java and

SQL knowledge. It is based on a tutorial by Michael Gloegl, the

third-party libraries we name are for JDK 1.4 and 5.0. You might need

others for JDK 1.3.

  

The source code for the tutorial is included in the distribution in the doc/reference/tutorial/ directory.

   
  
  
  

1.2. Part 1 - The first Hibernate Application

  
  

First,

we'll create a simple console-based Hibernate application. We use an

Java database (HSQL DB), so we do not have to install any database

server.

  

Let's assume we need a small database application

that can store events we want to attend, and information about the

hosts of these events.

  

The first thing we do, is set up our

development directory and put all the Java libraries we need into it.

Download the Hibernate distribution from the Hibernate website. Extract

the package and place all required libraries found in /lib into into the /lib directory of your new development working directory. It should look like this:

.   lib    antlr.jar    cglib.jar    asm.jar    asm-attrs.jars    commons-collections.jar    commons-logging.jar    hibernate3.jar    jta.jar    dom4j.jar    log4j.jar 
  

This is the minimum set of required libraries (note that we also copied hibernate3.jar, the main archive) for Hibernate at the time of writing. The Hibernate release you are using might require more or less libraries. See the README.txt file in the lib/

directory of the Hibernate distribution for more information about

required and optional third-party libraries. (Actually, Log4j is not

required but preferred by many developers.)

  

Next we create a class that represents the event we want to store in database

  

Read More


Download this book from Usenet
DOWNLOAD Free register and download UseNet downloader, then you can free download ebooks from UseNet.

Free Download "Hibernate Reference Documentation" from Usenet!

Buy this book from amazon


Disclaimer:
Contents of this page are indexed from the Internet. All actions are under your responsability. Email us to report illegal contents or external links and we'll remove them immediately.

Search More...

Hibernate Reference Documentation

Search free ebooks in ebookee.com!


Links

Free Trade Magazine Subscriptions & Technical Document Downloads

Search and Buy
<< Search and Buy This Book on Amazon >>

Download this book from Usenet
DOWNLOAD How to download:
Free register to download UseNet downloader and install, then search book title and start downloading. UseNet is clean and can be unstalled totally. Enjoy!

Free Download "Hibernate Reference Documentation" from Usenet!

Download Link 2


No download links here
Please check the description for download links if any or do a search to find alternative books.

Can't Download?
Please search mirrors if you can't find download links for "Hibernate Reference Documentation" in "Description" and someone else may update the links. Check the comments when back to find any updates.

Search Mirrors
Maybe some mirror pages will be helpful, search this book at top of this page or click here to find more info.


Related Books


Books related to "Hibernate Reference Documentation":


Comments


No comments for "Hibernate Reference Documentation".


    Add Your Comments

    1. Download links and password may be in the description section, read description carefully!
    2. Do a search to find mirrors if no download links or dead links.

    required

    required, hidden

    need login

    required

    Back to Top