Java Persistence API: Configuring Fields & Performing CRUD Operations

Expected Duration
Lesson Objectives
Course Number
Expertise Level


In this course, you'll explore how primary keys can be set up for the tables underlying your entities and how you can manage the configuration of individual columns in your database columns using JPA annotations. You'll learn how to perform create, read, update, and delete operations using the JPA entity manager.

Once you're done with this course, you'll be able to structure your entities and their attributes based exactly on your specifications and perform basic storage and retrieval operations using JPA and Hibernate.

Expected Duration (hours)

Lesson Objectives

Java Persistence API: Configuring Fields & Performing CRUD Operations

  • discover the key concepts covered in this course
  • recognize the primary key as a required field
  • configure the table name using the @Table annotation
  • use @GeneratedValue to generate primary key values
  • contrast the AUTO and IDENTITY genaration types
  • use the IDENTITY generation type for multiple tables
  • use the SEQUENCE generation type
  • use the TABLE generation type
  • configure composite keys using @Embeddable and @Id annotations
  • configure composite keys using @EmbeddedId annotation
  • configure composite keys using the @IdClass annotation
  • apply the @Column annotation to define columns
  • specify precision and scale values for floating point columns
  • specify not null and uniqueness constraints
  • annotate non-persistable fields using @Transient
  • use the @Temporal annotation for date fields
  • use the @Lob annotation for large objects
  • configure embeddable entities as persistent fields
  • share embeddable objects across entities
  • use begin and commit transactions
  • perform read operations on database entities
  • perform update and delete operations on entities
  • specify entity attributes using XML
  • summarize the key concepts covered in this course
  • Course Number:

    Expertise Level