Java Persistence API: Embedding Collections & Managing Cascade Operations

Java    |    Expert
  • 22 videos | 1h 58m 17s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 24 users Rating 4.6 of 24 users (24)
In this course, you'll explore how nested collections within an outer entity can be mapped using JPA. You'll implement mappings for collections of primitive types, embeddable objects, and collections of entities. You'll examine how JPA and Hibernate handle list, set, and map collections. Next, you'll relate how specific operations such as entity persistence, update, and removal can be cascaded from parent entities to child entities and illustrate how inheritance relationships in your code can be mapped to database tables. Once you're done with this course, you'll be able to use nested collections within your entities and also map inheritance relationships in your code to meaningful representations using tables.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Define collection mapping for primitive data types
    Configure lazy and eager loading for collections
    Persist collections using the set interface
    Persist nested objects in collections
    Persist collections defined using the map interface
    Configure maps using @mapkeycolumn and @mapcolumn
    Use embeddable objects as map values
    Use entities as map values
    Use entities as map keys
    Recall the implications of cascade type none
  • Summarize the effects of cascade type persist and remove
    Summarize the effects of cascade type merge
    Summarize the effects of cascade type detach and all
    Apply the @mappedsuperclass annotation to parent classes
    Recall the effects of persisting derived entities with a mapped superclass
    Use the single_table inheritance to store all entities in a single table
    Specify discriminator columns with specific discriminator values
    Configure entities to handle null and unknown discriminator values
    Use the table_per_class inheritance to store entities in multiple tables
    Use the joined inheritance to store entities in multiple tables
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 12s
  • 5m 37s
    Find out how to map collections for primitive data types. FREE ACCESS
  • Locked
    3.  Eager and Lazy Loading
    5m 2s
    In this video, learn how to configure lazy and eager loading for collections. FREE ACCESS
  • Locked
    4.  Persistent Collections Using a Set
    3m 11s
    In this video, you will learn how to persist collections using the Set interface. FREE ACCESS
  • Locked
    5.  Persistent Collections Using Embeddables
    4m 33s
    Learn how to store nested objects in collections. FREE ACCESS
  • Locked
    6.  Persistent Collections Using Maps
    4m 41s
    During this video, you will learn how to persist collections defined using the Map interface. FREE ACCESS
  • Locked
    7.  Configuring Maps Using MapKeyColumn and MapColumn
    3m 26s
    In this video, find out how to configure maps using @MapKeyColumn and @MapColumn. FREE ACCESS
  • Locked
    8.  Map Collections: Embeddables as Map Values
    4m 38s
    In this video, you will learn how to use embeddable objects as map values. FREE ACCESS
  • Locked
    9.  Map Collections: Entities as Values
    6m 17s
    During this video, you will learn how to use entities as map values. FREE ACCESS
  • Locked
    10.  Map Collections: Entities as Keys
    6m 49s
    In this video, find out how to use entities as map keys. FREE ACCESS
  • Locked
    11.  Cascade Type NONE
    6m 26s
    Upon completion of this video, you will be able to recall the implications of cascade type none. FREE ACCESS
  • Locked
    12.  Cascade Type PERSIST and REMOVE
    5m 24s
    In this video, learn how to summarize the effects of cascade type PERSIST and REMOVE. FREE ACCESS
  • Locked
    13.  Cascade Type MERGE
    4m 46s
    In this video, you will summarize the effects of a cascade type MERGE. FREE ACCESS
  • Locked
    14.  Cascade Type DETACH and ALL
    5m 21s
    Find out how to summarize the effects of cascade type DETACH and ALL. FREE ACCESS
  • Locked
    15.  The Mapped Superclass
    9m 6s
    In this video, you will apply the @MappedSuperclass annotation to parent classes. FREE ACCESS
  • Locked
    16.  Mapped Superclass: Persisting and Loading Entities
    5m 31s
    After completing this video, you will be able to recall the effects of persisting derived entities that have a mapped superclass. FREE ACCESS
  • Locked
    17.  Inheritance Type SINGLE_TABLE
    6m 49s
    Find out how to use the SINGLE_TABLE inheritance to store all entities in a single database table. FREE ACCESS
  • Locked
    18.  Discriminator Columns and Discriminator Values
    4m 30s
    After completing this video, you will be able to specify discriminator columns with specific discriminator values. FREE ACCESS
  • Locked
    19.  Null and Unknown Discriminator Values
    5m 3s
    In this video, find out how to configure entities to handle null and unknown values for the discriminator. FREE ACCESS
  • Locked
    20.  Inheritance Type TABLE_PER_CLASS
    10m 3s
    In this video, find out how to use the TABLE_PER_CLASS inheritance to store entities in multiple tables. FREE ACCESS
  • Locked
    21.  Inheritance Type JOINED
    7m 1s
    In this video, learn how to use the JOINED inheritance to store entities in multiple tables. FREE ACCESS
  • Locked
    22.  Course Summary
    1m 50s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.3 of 63 users Rating 4.3 of 63 users (63)
Rating 4.4 of 43 users Rating 4.4 of 43 users (43)
Rating 4.5 of 34 users Rating 4.5 of 34 users (34)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.1 of 21 users Rating 4.1 of 21 users (21)
Rating 3.9 of 38 users Rating 3.9 of 38 users (38)
Rating 4.5 of 154 users Rating 4.5 of 154 users (154)