This course takes the student through a variety of labs exploring the interaction between Java Object Domain Models and Relational Database Tables, this is becoming the standard approach for database access in Java Applications. The course will illustrate how using meta data annotations, you can map domain objects to database tables, and class properties to columns in those tables for CRUD operations. The student will use numerous Query strategies to retrieve data from a database and consume the data in their applications with minimal effort. The course will talk about the how these meta data annotations can also map compositional and inheritance relationships between classes and a database schemas.
Overview
Syllabus
- Java Persistence Architecture
- Interact with databases using Java Persistence Architecture (JPA), defining Persistence configurations for a Persistent Unit. Define JPA entities through various annotations and illustrate how the details of Java Database Connectivity (JDBC) are abstracted away. Implement database CRUD operations using the API of the JPA EntityManager.
- Queries and Lifecycle
- Implement various Query techniques that JPA options and understand the importance of the Persistence Lifecycle of a managed bean and the use of Versioning for Optomistic Locking for detached Entities
- Associations
- Define Compositional and Inheritance relationships between JPA entities that map to Primary Key Foreign Key relationships in a database schema
Taught by
Derek Parsons