JAVPS – Java Persistence Strategies

Enquire/Book this course

  • This field is for validation purposes and should be left unchanged.
Print this page
  • Code: JAVPS
  • Duration: Days 2
  • Price per delegate: £500.00 +VAT

Trained over 60000 delegates

Course delivered by industry expert instructors

Highly competitive pricing


Course Description

Persistence is for many one of the most confusing areas of Java and Java EE application development. There are so many options available to the developer, that it is often difficult to ascertain whether correct choices are being made. This 2 day workshop provides developers with two things. It allows them to get to grips with the various persistence options that are available to them, and secondly, it covers some of the guiding principles and constraints that should be considered when selecting a persistence strategy. The persistence strategies covered include Java Persistence API, Java Data Objects, Hibernate, Entity beans, Session beans with persistence logic, data access objects, JDBC, and a number of others. The class will take a Java EE application and build it using the various different persistence options that are available. The training course is written to use the JBoss application server. Other application servers can be used if required.
Target Student:
This training course is aimed at experienced Java developers, who need to learn the skills required to build various persistence frameworks into their Java applications, and who need to be able to evaluate the various persistence options for the applications that they build.
  • Students should be familiar with the Java Programming language as far as at least being comfortable with its basic use and with OO concepts.
  • It is also desirable but not essential, that students have experience of building Java EE applications.
Delivery Method:
Instructor led, group-paced, classroom-delivery learning model with structured hands-on activities.
The training course combines lectures with practical exercises that help the delegates to put what they have learned on the training course into practice. The exercises specifically build on what has been recently taught and are built up as the training course progresses.
Performance-Based Objectives
At the end of this training course, students should be able to:
At the end of this training course, students should be able to:
  • Appreciate the alternative persistence strategies, identifying the pros and cons of each
  • Understand and implement JDO persistence implementations
  • Understand and implement Hibernate persistence implementations
  • Understand and implement the Java Persistence API
  • Understand and implement Entity bean persistence implementations using CMP or BMP
  • Understand and implement Session beans for persistence
  • Be able to apply best practice Java EE design patterns to whichever persistence strategy is employed such as DAO
Course Content
1. Persistence Strategies
  • JDBC
  • The Java Persistence API
  • Hibernate
  • Entity beans vs POJOs
  • BMP vs CMP vs Hibernate
2. Working with JDBC
  • JDBC Architecture
  • Choosing a Driver
  • Working with Connections
  • Working with Statements, PreparedStatements, and CallableStatements
  • Processing a ResultSet
3. Using JDO for Persistence
  • What is JDO
  • When to use JDO
  • JDO Example
4. Using Hibernate for Persistence
  • What is Hibernate
  • Hibernate architecture
  • Introducing the Hibernate Core
  • A Hibernate Example using the Core
  • Implementing table relationships in Hibernate objects
5. The Java Persistence API (JPA)
  • What is the Java Persistence API
  • Hibernate and the JPA
  • The JPA Entity beans
  • Using Annotations with Entity beans
  • A Hibernate example using JPA
6. Persistence Units
  • What is a persistent unit
  • Configuring a persistence unit
  • Understanding persistence.xml
  • Deploying a persistence unit to JBoss
7. Entity Beans
  • Entity bean architecture
  • Home and Remote interfaces
  • Finder Methods
  • Primary Keys
  • Entity Context
  • Deploying entity beans
8. Session Beans
  • Session Beans and Data Access Objects
  • Using Session Beans with Hibernate
  • Using Session Beans with JDO
  • Using Session Beans with JDBC
  • Using Session Beans with Entity beans
  • Working with Value Objects