Email Us   Phone : 503-259-0312   
  Home    |    Instructor-led Training    |    Self-Paced Learning    |    Online Training     


Contact Us   -   Why Choose Wintrac   -   Clients    

Courses
ADA
Adobe
Agile
AJAX
Android
Apache
AutoCAD
Big Data
Business Analysis
Business Intelligence
Business Objects
Business Skills
C++ programming
Cisco
Citrix
Cloud Computing
COBOL
Cognos
ColdFusion
COM/COM+
CompTIA
CORBA
CRM
Crystal Reports
Datawarehousing
DB2
Desktop Application Software
DNS
Embedded Systems
Google Web Toolkit (GWT)
IPhone
ITIL
Java
JBoss
LDAP
Leadership Development
Lotus
Machine learning/AI
Macintosh
Mainframe programming
Microsoft technologies
Mobile
MultiMedia and design
.NET
NetApp
Networking
New Manager Development
Object oriented analysis and design
OpenVMS
Oracle
Oracle VM
Perl
PHP
PowerBuilder
Professional Soft Skills Workshops
Project Management
Rational
Ruby
Sales Performance
SAP
SAS
Security
SharePoint
SOA
Software quality and tools
SQL Server
Sybase
Symantec
Telecommunications
Teradata
Tivoli
Tomcat
Unix/Linux/Solaris/AIX/
HP-UX
Visual Basic
Visual Foxpro
VMware
Web Development
WebLogic
WebSphere
Websphere MQ (MQSeries)
Windows programming
XML
XML Web Services
Other
JPA with Hibernate (Version 2.1)
Please click here for Version 2.0
Java Training Overview

This course offers a comprehensive and detail-oriented treatment of Hibernate® and the Java Persistence API (JPA) for developers interested in implementing persistence tiers for enterprise applications. We cover JPA basics including simple object/relational concepts and annotations, persistence contexts and entity managers, and configuration via persistence.xml. We get a good grounding in the Java Persistence Query Language (JPQL), working with a JPQL console. The course then moves into advanced mapping techniques, the Criteria API, lifecycle hooks, validation, locking, and caching. Students will complete the course with a firm understanding of JPA architecture and plenty of hands-on experience.

This version of the course supports JPA 2.1 with Hibernate 5.0. EclipseLink 2.6 is deployed with the course software as well; switching providers is just a matter of moving a few lines in and out of XML comments in the relevant persistence.xml file, and we encourage instructors to demonstrate both providers, to illustrate portability and for comparison of some finer points.

The course also supports either the Derby or Oracle RDBMS. Derby is bundled with the course software and is pre-configured; a script is included to change over to Oracle configurations for all exercises and schema-creation scripts are available for both.

Java Training Prerequisites

  • A strong Java programming background is essential for this course
  • Knowledge of relational database concepts and SQL is recommended
  • Prior experience with JDBC will be a plus but is not required
Java Training Learning Objectives

After completing this course, the student should be able to:

  • Understand the value of object/relational mapping and JPA's role as a standard for ORM implementations.
  • Develop JPA entities using JPA annotations to align the Java classes, properties, and types to relational tables, columns, and types.
  • Create entity managers and instantiate persistence contexts to perform create/retrieve/update/delete (CRUD) operations.
  • Implement entity relationships of all cardinalities, including unidirectional and bidirectional relationships.
  • Map composite primary keys, inheritance relationships, eager/lazy fetching, and cascading operations.
  • Use JPQL to write object-oriented queries, and process query results.
  • Use the Criteria API to define queries programmatically, and take advantage of type safety using the Metamodel API.
  • Build reusable façades that encapsulate simpler and more complex persistence operations.
  • Implement persistence lifecycle event handlers.
  • Define JSR-303 validation constraints on JPA entities and see them enforced by the JPA provider.
  • Manage concurrent opertaions via optimistic or pessimistic locking strategies.
  • Understand the actions of the local and shared entity caches, and use them appropriately while avoiding over-caching pitfalls.
Java Training Course duration

5 Days

Java Training Course outline

Chapter 1. Introduction to JPA
  • Object/Relational Mapping
  • Mismatches Between Relational and Object Models
  • The Java Persistence API
  • Hibernate
  • Architecture
  • Entity Metadata
  • The Entity Manager
Chapter 2. Single-Table Mapping
  • Annotations
  • JavaBean Standards
  • Property, Field, and Mixed Access
  • Table and Column Mapping
  • Primary Keys and Key Generation
  • Type Mappings
  • Temporal and Enumerated Types
  • Embedded Types
  • Converters
Chapter 3. Mapping Associations
  • @Embeddable Types
  • Entity Relationships
  • @ManyToOne Relationships
  • @OneToOne Relationships
  • @OneToMany Relationships
  • @ManyToMany Relationships
  • Eager and Lazy Loading
Chapter 4. Entity Managers
  • Putting Entities to Work
  • persistence.xml
  • Entity State and Transitions
  • Managing Transactions
  • Persistence Operations
  • Creating Queries
  • Named Queries
  • Query Parameters
  • Native Queries
  • Stored-Procedure Queries
Chapter 5. JPQL
  • The Java Persistence Query Language
  • HQL and JPQL
  • Query Structure
  • Path Expressions
  • Filtering
  • Scalar Functions
  • Using Native Functions
  • Operators and Precedence
  • between, like, in
  • is null, is empty
  • Ordering
  • Aliases
  • Grouping
  • Aggregate Functions
  • Joins
  • Fetch Joins
  • Constructors
  • Updates and Deletes
Chapter 6. Persistence Components
  • Encapsulating Persistence Logic
  • Design Considerations
  • Testability
  • Transaction Control
  • Exception Handling
  • Generic Types
Chapter 7. Advanced Mappings
  • Inheritance Strategies
  • Single-Table Strategy
  • Joined-Table Strategy
  • Table-Per-Concrete-Class Strategy
  • Querying Over Inheritance Relationships
  • Type Identification with .class
  • Secondary Tables
  • Composite Primary Keys
  • @IdClass and @EmbeddedId
  • Derived Identifiers
  • @ElementCollection
  • Default Values
  • @Version Fields
  • Cascading and Orphan Removal
  • Detachment and Merging
  • Hibernate Extensions
  • The @Type Annotation
Chapter 8. The Criteria API
  • History of the Criteria API
  • Criteria Query Structure
  • The MetaModel API and Query Type Safety
  • Tuples
  • Joins
  • Predicates
  • Building Expressions
  • Ordering
  • Grouping
  • Encapsulating Persistence Logic
  • Façades
  • Range Queries
  • Updates and Deletes
Chapter 9. Lifecycle
  • Lifecycle Events
  • Method Annotations
  • Entity Listeners
Chapter 10. Validation
  • JSR-303 Validation
  • Constraint Annotations
  • Validation Modes
  • Validation Groups
  • Handling Validation Exceptions
Chapter 11. Locking
  • Concurrency
  • Updates to the Same and Related Entities
  • Pessimistic Locking
  • Lock Types
  • Who Blocks Whom
  • Deadlocking and Timeouts
  • Optimistic Locking
  • The @Version Annotation
  • Optimistic Read and Write Locking
  • Error Handling
  • Combining Locking Strategies
Chapter 12. Caching
  • Caching
  • Persistence Context as Transactional Cache
  • Shared (2nd-Level) Cache
  • Pros and Cons
  • Cache Configuration
  • Eviction
  • Effects of Locking on Caching
System Requirements

Minimum Hardware Requirements
  • Core i5, 1.8 GHz, 4 gig RAM, 1 gig disk space.
Hardware – recommended

  • Core i5, 2.5 GHz GHz, 8 gig RAM, 1 gig disk space.
Operating system
  • Tested on Windows 7/8, Mac OS 10.8.5
Network and Security

Limited privileges required

Software

All free downloadable tools, with an option to use certain commercial products.


 
About us
Contact us
Careers at Wintrac
Our Clients
Why Wintrac


Register for a free training CD-ROM drawing
Refer a client or instructor and earn $$$


Wintrac Inc.
16523 SW McGwire Ct.
Beaverton OR 97007
 
© Wintrac, Inc. All rights reserved.                                                                               Site Map   |   Terms of Use   |   Privacy Policy