SKILL BENCHMARK

Java Persistence API with Hibernate Mastery (Expert Level)

  • 20m
  • 20 questions
The Java Persistence API with Hibernate Mastery (Expert Level) benchmark measures your ability to relate how operations are cascaded from parent to child entities and how inheritance relationships in code can be mapped to database tables. You will be evaluated on your skills in executing queries in JPA using native queries, JPQL queries, and the Criteria API, as well as plugging callbacks into the entity lifecycle. Learners who score high on this benchmark demonstrate that they have the skills to manage cascade operations, execute queries, and manage the entity lifecycle.

Topics covered

  • configure an entity listener object for callbacks
  • configure entities to handle null and unknown discriminator values
  • construct special objects to hold multiple fields within JPQL queries
  • define and use named queries
  • execute JPQL queries
  • execute update and delete JPQL queries
  • hook into the entity lifecycle after load
  • hook into the entity lifecycle before and after entity persistence
  • hook into the entity lifecycle before and after entity removal
  • perform join operations using JPQL queries
  • recall the effects of persisting derived entities with a mapped superclass
  • recall the implications of cascade type NONE
  • reference foreign keys within JPQL queries
  • retrieve multiple fields using JPQL queries
  • run advanced criteria queries
  • specify discriminator columns with specific discriminator values
  • summarize the basic structure of the Criteria API
  • summarize the effects of cascade type DETACH and ALL
  • summarize the effects of cascade type PERSIST and REMOVE
  • use the JOINED inheritance to store entities in multiple tables