JPA with Hibernate Training in J P Awith, Hibernate

Enroll in or hire us to teach our JPA with Hibernate class in J P Awith, Hibernate by calling us @303.377.6176. Like all HSG classes, JPA with Hibernate may be offered either onsite or via instructor led virtual training. Consider looking at our public training schedule to see if it is scheduled: Public Training Classes
Provided there are enough attendees, JPA with Hibernate may be taught at one of our local training facilities.

Answers to Popular Questions:

 
Yes, this class can be tailored to meet your specific training needs.
Yes, we provide Java Programming consulting services.
Yes, group discounts are provided.

Course Description

 
This course offers a comprehensive and detail-oriented treatment of Hibernate 4.0 and the Java Persistence API (JPA) 2.0 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) and take advantage of a prepared JPQL query console to explore the two schemas on which the course's case studies are based. The course then moves into advanced topics including JPA-2.0 mapping options, the Criteria API, lifecycle hooks, JSR-303 validation, locking, and caching. Students will complete the course with a firm understanding of JPA architecture and plenty of hands-on exercise in entity mapping, persistence operations, and JPQL. Course software includes two schemas: a fairly simple human-resources model (6 tables, 253 rows) for early chapters and a more sophisticated pharmacy schema (14 tables, 4255 rows) for the latter half of the course. The course 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.
Course Length: 4 Days
Course Tuition: $1690 (US)

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.

Course Outline

 

Chapter 1. Introduction to JPA

  • Object/Relational Mapping
  • Mismatches Between Relational and Object Models
  • The Java Persistence API
  • Hibernate
  • History
  • Architecture
  • Entity Metadata
  • The Entity Manager

Chapter 2. Object/Relational Mapping

  • Annotations
  • JavaBean Standards
  • Property, Field, and Mixed Access
  • Table and Column Mapping
  • Primary Keys and Generation
  • Type Mappings
  • Temporal and Enumerated Types
  • Embedded Types
  • Entity Relationships
  • @ManyToOne Relationships
  • @OneToOne Relationships
  • @OneToMany Relationships
  • @ManyToMany Relationships
  • Eager and Lazy Loading

Chapter 3. Entity Managers

  • Putting Entities to Work
  • persistence.xml
  • Entity State and Transitions
  • Managing Transactions
  • Persistence Operations
  • Creating Queries
  • Named Queries
  • Query Parameters
  • Native Queries

Chapter 4. JPQL

  • The Java Persistence Query Language
  • HQL and JPQL
  • Query Structure
  • Path Expressions
  • Filtering
  • Scalar Functions
  • Operators and Precedence
  • between, like, in
  • is null, is empty
  • Ordering
  • Aliases
  • Grouping
  • Aggregate Functions
  • Joins
  • Constructors

Chapter 5. 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 6. The Criteria API

  • History of the Criteria API
  • Criteria Query Structure
  • The MetaModel API and Query Type Safety
  • The Hibernate Metamodel Generator
  • Tuples
  • Joins
  • Predicates
  • Building Expressions
  • Ordering
  • Grouping
  • Encapsulating Persistence Logic
  • Façades
  • Range Queries

Chapter 7. Lifecycle and Validation

  • Lifecycle Events
  • Method Annotations
  • Entity Listeners
  • JSR-303 Validation
  • The Hibernate Validator
  • Constraint Annotations
  • Validation Modes
  • Validation Groups

Chapter 8. Locking and Caching

  • Concurrency
  • Optimistic Locking
  • Optimistic Read Locking
  • Optimistic Write Locking
  • Pessimistic Locking
  • Caching
  • Persistence Context as Transactional Cache
  • Shared (2nd-level) Cache
  • Locking and Caching "Do's and Don'ts"

Course Directory [training on all levels]

Upcoming Classes
Gain insight and ideas from students with different perspectives and experiences.

Java Programming Uses & Stats

Java Programming is Used For:
Android & IOS Development Software Products Video Games Desktop GUI's
Difficulty
Popularity
Year Created
1995
Pros

Most Commonly Used: 
According to Oracle, three billion devices run on Java.  And, because of its real-world applications, it consistently ranks at the top of the TIOBE Programming Community Index. 

Great Career Choice: 
Some of the fastest-growing salaries in the U.S. in 2018 are for Java developers.  (Glassdoor)  

Android Apps Development:
Developers predominatly use their Java skills in building apps for Google's Android. The Android platform is the number one mobile paltform in the world

It Can Run On Any Platform:
Java can compile on Windows and run the same compiled file on Linux, Windows and Mac.

Great Supporting IDE's:
Over the years, coding in Java has become simpler with the introduction of open source development tools, i.e. Eclipse and NetBeans that use Java capabilities for debugging.  
 

Cons

Uses a Lot of Memory:
Performance can be significantly slower with Java and more memory-consuming than natively compiled languages such as C or C++.

Difficulty in Learning: 
Learning Java can be a bit challenging if you are a beginner.  However, once you get the hang of Object Oriented Programming and a decent grasp of the syntax, you will be well on your way.

Slow Start Up Times:
There is quite a bit of one-time initialization done by JDK classes before compiling as well as loading classes and verification (making sure code doesn't do evil things, all of which takes longer that some other languages such as C. 

Verbose and Complex Code:
Long, over-complicated sentences make code less readable and scannable. Compare to let's say Python, we can see how clear Python code appears: It doesn’t require semicolons; uses “and,” “or,” and “not” as operators instead of Java’s “&&,” “||,” and “!”; and generally has fewer bells and whistles such as parentheses or curly braces.

Commercial License Cost:
Companies have to prepare for the changes that Oracle will institute in 2019 . Today, the current version of Java is free and available for redistribution for general purpose computing. However, If you are a DEVELOPER, Oracle recommends you review the roadmap information for Java SE 8 and beyond and take appropriate action depending on the type of application you develop and your distribution mode.

Java Programming Job Market
Average Salary
$102,000
Job Count
26,856
Top Job Locations

New York City 
San Jose
Washington D.C, 

Complimentary Skills to have along with Java Programming

- If you are an experienced Java developer, learning a complimentary language to Java should come much more naturally.  As an example JetBrains recently created the Kotlin programming language which is officially supported by Google for mobile development.  Kotlin compiles to Java bytecode and runs on the JVM; it's purported to address many of Java's shortcomings...

Interesting Reads Take a class with us and receive a book of your choosing for 50% off MSRP.