
You want to start using Hibernate and Java Persistence, and you want to learn it
with a step-by-step example. You want to see both persistence APIs and how you
In this chapter, you’ll learn how to set up a project infrastructure for a plain
Java application that integrates Hibernate, and you’ll see many more details about
how Hibernate can be configured in such an environment. We also discuss config-
uration and integration of Hibernate in a managed environment—that is, an envi-
ronment that provides Java EE services.
As a build tool for the “Hello World” project, we introduce Ant and create
build scripts that can not only compile and run the project, but also utilize the
Hibernate Tools. Depending on your development process, you’ll use the Hiber-
nate toolset to export database schemas automatically or even to reverse-engineer
a complete application from an existing (legacy) database schema.
Like every good engineer, before you start your first real Hibernate project you
should prepare your tools and decide what your development process is going to
look like. And, depending on the process you choose, you may naturally prefer
different tools. Let’s look at this preparation phase and what your options are,
and then start a Hibernate project.
download here
with a step-by-step example. You want to see both persistence APIs and how you
can benefit from native Hibernate or standardized JPA. This is what you’ll find in
this chapter: a tour through a straightforward “Hello World” application.
However, a good and complete tutorial is already publicly available in the
Hibernate reference documentation, so instead of repeating it here, we show you
more detailed instructions about Hibernate integration and configuration along
the way. If you want to start with a less elaborate tutorial that you can complete in
one hour, our advice is to consider the Hibernate reference documentation. It
takes you from a simple stand-alone Java application with Hibernate through the
most essential mapping concepts and finally demonstrates a Hibernate web appli-
cation deployed on Tomcat.
this chapter: a tour through a straightforward “Hello World” application.
However, a good and complete tutorial is already publicly available in the
Hibernate reference documentation, so instead of repeating it here, we show you
more detailed instructions about Hibernate integration and configuration along
the way. If you want to start with a less elaborate tutorial that you can complete in
one hour, our advice is to consider the Hibernate reference documentation. It
takes you from a simple stand-alone Java application with Hibernate through the
most essential mapping concepts and finally demonstrates a Hibernate web appli-
cation deployed on Tomcat.
In this chapter, you’ll learn how to set up a project infrastructure for a plain
Java application that integrates Hibernate, and you’ll see many more details about
how Hibernate can be configured in such an environment. We also discuss config-
uration and integration of Hibernate in a managed environment—that is, an envi-
ronment that provides Java EE services.
As a build tool for the “Hello World” project, we introduce Ant and create
build scripts that can not only compile and run the project, but also utilize the
Hibernate Tools. Depending on your development process, you’ll use the Hiber-
nate toolset to export database schemas automatically or even to reverse-engineer
a complete application from an existing (legacy) database schema.
Like every good engineer, before you start your first real Hibernate project you
should prepare your tools and decide what your development process is going to
look like. And, depending on the process you choose, you may naturally prefer
different tools. Let’s look at this preparation phase and what your options are,
and then start a Hibernate project.
download here
No comments:
Post a Comment