Skip to main content

Instructor-led training

The Java Persistence API Training in Brighton, Colorado

This course offers a comprehensive and detail-oriented treatment of the Java Persistence API (JPA) for developers interested in implementing persistence tiers for enterprise applications.

What you'll learn

This course offers a comprehensive and detail-oriented treatment of 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) 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. br/ 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. br/ This version of the course supports JPA 2.0 with a choice of two providers: EclipseLink 2.3, which is pre-configured for course exercises, and Hibernate 4.0. 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 at least here and there, to illustrate portability and for comparison's sake over some finer points. br/ 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.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Brighton, Colorado or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

A strong Java programming background is essential for this course. A strong Java programming background is essential for this course. 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
  • JPA History
  • JPA Architecture
  • Entity Metadata
  • The Entity Manager
  • JPA Providers

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
  • 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
  • Secondary Tables
  • Composite Primary Keys
  • @IdClass and @EmbeddedId
  • Derived Identifiers
  • @ElementCollection
  • Default Values
  • @Version Fields
  • Cascading and Orphan Removal
  • Detachment and Merging

Chapter 6. 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

Chapter 7. Lifecycle and Validation

  • Lifecycle Events
  • Method Annotations
  • Entity Listeners
  • JSR-303 Validation
  • 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"

What makes JPA hard to master

The annotations are easy to learn. What is hard is knowing what the persistence provider does with your objects between a method call and the SQL that results. The syllabus builds that understanding in layers.

  • Mapping first. Chapter 2 covers table and column mapping, primary key generation, temporal and enumerated types, embedded types, and the four relationship annotations (@ManyToOne, @OneToOne, @OneToMany, @ManyToMany). It also covers eager versus lazy loading. Many later surprises, such as unexpected extra queries or data that is missing after a transaction ends, trace back to fetch choices made here.
  • Entity state. Chapter 3 covers entity state and transitions, transactions and persistence operations. A common misconception is that an entity is just a plain object. In fact its behavior depends on whether it is new, managed, or detached. Chapter 5 returns to this with detachment and merging, cascading and orphan removal.
  • Two query languages. JPQL (Chapter 4) queries entities and their path expressions, not tables. The Criteria API (Chapter 6) expresses the same ideas as a typed object graph, using the MetaModel API for type safety. Learners often write JPQL as if it were SQL and then struggle to read the Criteria equivalent.
  • Advanced mappings. Inheritance strategies (single-table, joined-table, table-per-concrete-class), composite keys with @IdClass and @EmbeddedId, derived identifiers and @ElementCollection each have trade-offs in schema shape and query behavior.
  • Concurrency last. Chapter 8 treats optimistic and pessimistic locking, @Version fields, the persistence context as a transactional cache, and the shared second-level cache. These topics are hard because the faults are intermittent. They depend on how earlier chapters' transaction and state concepts interact.

Who it suits and what to take around it

The course is general level and runs four days. It suits Java developers who will build or maintain the persistence tier of an enterprise application, and technical leads who need to review entity models and queries. The prerequisite is a strong Java background. JDBC experience helps, because it makes the object/relational mismatch concrete, but it is not required.

Developers whose Java is still forming can build that base first with Fast Track to Java for OO Developers, since the course assumes you are already comfortable with Java and its object model. Developers who want hands-on JDBC and a web tier to sit above the persistence layer may find Fast Track to Java EE 5 with Servlets, JSP & JDBC on Tomcat/Eclipse a useful companion. It shows the plain-JDBC approach that JPA abstracts.

Teams working on newer Java or persistence releases than the course materials target can ask for tailored private training through a training proposal request. Private delivery can be onsite or live online. Browse related options in the Java Programming courses and learning guide.

Where these topics apply: illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Modeling a class hierarchy. A team might need to persist several kinds of related business objects. Choosing among single-table, joined-table and table-per-concrete-class inheritance, and then querying across the hierarchy, are the decisions the Advanced Mappings chapter addresses.
  • Preventing lost updates. For example, two users edit the same record at once in a back-office application. A team would weigh @Version fields and optimistic locking against pessimistic locking, and decide where the persistence context and shared cache could serve stale data.
  • Reusable, type-safe search. A team building a screen with optional filters and range-based paging might replace string-built JPQL with Criteria queries, using the MetaModel API, predicates and range queries. It could place them behind a façade so persistence logic stays in one layer. Lifecycle listeners and JSR-303 constraints could then enforce data rules at the entity.

AI coding assistants and JPA

AI coding assistants are useful for boilerplate: drafting entity classes from a table description, writing getters and constructors, and producing a first-pass JPQL query or named query. They also help explain an unfamiliar mapping.

They fail where JPA behavior depends on context the assistant cannot see:

  • Fetching. Generated code often relies on lazy relationships being loaded outside a transaction, or it triggers one query per row when iterating a collection.
  • Entity state. Suggestions commonly misuse merge versus persist, or add cascade and orphan-removal settings that delete more than intended.
  • Queries. JPQL may be syntactically plausible but wrong. Examples are joins that multiply rows, or SQL-style syntax that JPQL does not support. Criteria code may use strings instead of the MetaModel API.
  • Concurrency and caching. Assistants rarely reason correctly about lock modes, version fields or the second-level cache.
  • Versions and providers. Suggestions may mix package names, annotations or provider-specific features from different releases. Check them against the Java, JPA and provider versions your project actually uses.

To verify, turn on SQL logging and read what is actually executed. Run queries against a database seeded with realistic data, and write tests for state transitions and lock conflicts. Where portability matters, compare behavior across providers. Review any string-built query for injection risk.

Frequently asked questions

What level is this course and what do I need beforehand?

It is a general-level, four-day course. A strong Java programming background is essential. Prior JDBC experience is helpful but not required.

What does the course cover?

It covers object/relational mapping and relationships, entity managers and persistence.xml, JPQL, advanced mappings (inheritance, composite keys, element collections, versioning, cascading, merging), the Criteria API and MetaModel, lifecycle events, JSR-303 validation, and locking and caching.

Can the course be delivered privately for our team?

Yes. HSG delivers private training onsite at your location or live online. You can request a proposal through the training proposal link on this page.

Can the content be customized to the versions or tools we use?

Private training can be tailored, including to the technology versions an organization uses and to current releases. Describe your environment in a proposal request and HSG can discuss how the content might be adapted.

HSG Technology & Workforce Intelligence

Most relevant to The Java Persistence API

  • Software developers, employment: 27,010 (May 2025; U.S. Bureau of Labor Statistics)
  • Software developers, concentration relative to the U.S. (location quotient): 1.55 (May 2025; U.S. Bureau of Labor Statistics)
  • Software developers, median annual wage: $137,610 (May 2025; U.S. Bureau of Labor Statistics)
  • Computer systems design and related services, employment (private sector, by place of work): change: +32.5% (2019 annual average to 2024 annual average; calculated from U.S. Bureau of Labor Statistics)

Selected for this course from the verified data in the section below.

27,010Software developersMay 2025
1.55Concentration vs. U.S.1.00 = U.S. average; May 2025
$137,610Median annual wageU.S. $135,980; May 2025
1,640Computing graduates2023-24 academic year
5Verified local technology sourcesemployers, colleges, user groups

Key findings for Java

  • The official data measures occupations, industries and degrees, not programming languages, so it cannot count Java jobs in the Denver-Aurora-Centennial metro. In our reading, Java's typical uses (enterprise back-end systems, web services, integration middleware) fit a metro with a large software and computer systems design workforce.
  • Local Java evidence is educational and community-based. Community College of Denver, CU Denver and Metropolitan State University of Denver list Java courses in their catalogs, and the Denver Java Users Group has been meeting since November 1995. We found no employer-adoption or job-posting evidence for the area.
  • Software developers in the metro had a median annual wage of $137,610 (May 2025), compared with $135,980 for the United States, and a concentration of 1.55 relative to the U.S.
  • Colleges in the metro awarded 1,640 computing degrees and certificates in the 2023-24 academic year. This is a signal about the talent pipeline, not a promise of hiring outcomes.
  • Skills worth building include Spring Boot, REST services, automated testing and moving long-lived applications to current Java releases.

Workforce: occupations, industries and pay

These figures describe occupations, not Java use. Computer and mathematical occupations employed 86,530 people in the metro in May 2025, a concentration of 1.59 relative to the U.S. Software developers numbered 27,010, with a concentration of 1.55 and a median annual wage of $137,610, against $135,980 for software developers in the United States. Software quality assurance analysts and testers had a concentration of 1.87. That makes testing a visible companion skill for developers in this market.

Talent and education pipeline

Colleges in the metro awarded 1,640 computing degrees and certificates in the 2023-24 academic year, including 650 bachelor's and 670 master's degrees. The institutions awarding the most were the University of Colorado Denver/Anschutz Medical Campus (354), Colorado School of Mines (352) and the University of Denver (346). Graduates are a leading indicator of supply, worth watching rather than a guarantee of hiring. For working developers, the point is that newcomers arrive with solid fundamentals, and experience with frameworks, testing and delivery practices sets people apart.

Economy and technology investment

Computer systems design and related services employed 52,465 private-sector workers in 2024, up 32.5% from 2019 to 2024, with a concentration of 2.08 relative to the U.S. Software publishers had 1,101 establishments in 2024, compared with 463 in 2019. In our reading, this kind of consulting and software activity creates steady need for maintainable back-end code and for people who can modernize existing systems. Federal contract obligations for the metro's counties were $10.5 billion in FY2025, compared with $7.4 billion in FY2021. This is a signal worth watching, not a statement about any language.

How Denver compares

AreaBachelor's or higher (ACS 2020-2024 5-year)Computing degrees (share of bachelor's holders) (ACS 2020-2024 5-year)Computer and math jobs, LQ (May 2025)Software developers, LQ (May 2025)Software developers, median wage (May 2025)
Denver-Aurora-Centennial, CO49.4%5.3%1.591.55$137,610
United States35.7%5.1%1.001.00$135,980
Colorado45.7%5.4%1.401.39$138,390
Nashville-Davidson--Murfreesboro--Franklin, TN40.9%4.3%0.920.65$126,610
Las Vegas-Henderson-North Las Vegas, NV27.8%4.6%0.550.23$129,940
Orlando-Kissimmee-Sanford, FL36.7%4.7%0.930.88$129,620
Charlotte-Concord-Gastonia, NC-SC39.9%5.7%1.351.41$135,920
San Antonio-New Braunfels, TX32.3%5.0%0.850.65$128,430

LQ (location quotient) compares the share of jobs in an occupation or industry with the national share; 1.00 equals the U.S. average.

Each column uses one period for every area; "not published" means the publisher released no estimate, not zero.

Skills and technology fit

This part is HSG's interpretation of the data above for people learning Java. The official sources measure occupations, industries and degrees, not programming languages.

Why Java fits this regional economy. In our reading, the metro's mix of software developers, computer systems design firms and software publishers suits Java's usual territory: back-end services, integration layers and long-lived business applications. Information security analysts (concentration 1.81) and computer network architects (concentration 5.51) also exceed the national level in May 2025. That suggests secure, well-integrated services matter in local work. The data does not show which employers use Java.

Evidence of Java in the area. Three institutions list Java in their catalogs. Community College of Denver offers CSC 2040 Java Programming as an introduction to the language. CU Denver lists CSCI 4501 Java and an advanced course that pairs Java with Python. Metropolitan State University of Denver uses Java in CIS 3145 to build object-oriented business applications. These show that Java is taught locally, not that employers adopt it. On the community side, the Denver Java Users Group is a free, volunteer-run group that has met since November 1995. Its Meetup page listed an event on real-time data architectures with Apache Kafka and RabbitMQ. No job-posting or employer-adoption evidence was found for the area.

Frameworks and skills worth investigating. Technology context points to Spring Boot, Jakarta EE (Servlets, JPA, JAX-RS), Hibernate, Maven or Gradle, and JUnit. Start with the official dev.java learning pages, then add Spring training if your work involves services and integration. Long-lived applications also raise the practical challenges of upgrading across Java versions, tuning performance and securing web applications.

Emerging areas worth watching. The six-month release cadence with regular LTS releases, records, pattern matching and virtual threads are worth following, as are the Spring Boot and Jakarta EE namespace migrations. The Kafka-focused local meetup suggests streaming data is another topic worth investigating alongside the language.

Improving your prospects. Build in layers. Cover fundamentals and collections, then concurrency and database access, then a web framework, with testing throughout. Given the local concentration of testers and security analysts, show that you can write tested, secure code and modernize older applications. The Java learning guide lays out the path.

HSG courses for these skills. Fast Track to Java 25 and OO Development covers the Java release cycle, the JDK and object-oriented basics. Advanced Java Programming adds serialization and java.nio buffers and channels. Developing RESTful Services Using Java teaches JAX-RS, HATEOAS and the Richardson Maturity Model. Express JUnit covers assert methods, test suites and runners. Continuous Integration with Jenkins teaches automated test execution. Administering the WildFly 11/12 and JBoss EAP 7.1 Application Servers covers Java EE architecture, installation and server structure. For a team plan, request a training proposal.

About this data: sources, periods and limitations
  • Values are by the area each publisher reports (metropolitan area, county or state), retrieved from the publishers and checked by HSG.
  • Leading indicators, such as graduates and federal funding, are signals of possible future activity. They do not guarantee employment.
  • Computer and mathematical occupations, information security analysts, computer network architects and others: Survey-based estimate for the May reference period (3-year sample). Covers wage and salary workers; excludes the self-employed.
  • Software developers: Survey-based estimate for the May reference period (3-year sample). Annual median wage is capped at the published top code. Covers wage and salary workers; excludes the self-employed.
  • Software publishers: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 5132 (NAICS). Employment and wages are withheld by BLS for this area and year to protect employer confidentiality; the establishment count is published.
  • Computer systems design and related services: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 5415 (NAICS).
  • Computer systems design and related services: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 5415 (NAICS). Location quotient relative to the U.S.
  • Computing, institutions awarding the most computing degrees: Awards conferred July 1, 2023 to June 30, 2024, first major only, by institution location (not graduates' residence). Primarily online institutions (data.ipeds.onlineInstitutions) count in the national total only.
  • Federal contracts obligations, by place of performance: Federal obligations (commitments), not outlays, by place of performance; a single large award can dominate a small area; amounts are revised as agencies report.
  • Organizations' own pages: An organization's own statement, checked by HSG; it shows that the organization uses, hires for or teaches the technology, not how widely.

Training locations

The Java Persistence API training across the U.S. and beyond.

We provide private The Java Persistence API training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all The Java Persistence API training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.