Hong Kong JUG
March 2004
Java Persistence Issues

About the Speaker

Purpose of this session

Purpose of this session

Call To Action

Agenda

J2EE Architectures

J2EE Access of Relational Data

JDBC

Direct JDBC

Object Persistence Layer

Impedance Mismatch

Impedance Mismatch

Object Level Options

Entity Beans or POJO?

J2EE Developer Desires

DBA Desires

Differences

How Are Databases Affected?

J2EE Persistence Checklist

Mapping

Data and Object Models

Mapping Tools

Simple Object Model

Typical 1-1 Relationship Schema

Other possible Schemas…

Even More Schemas…

Mapping Summary

Object Traversal – Lazy Reads

Just in Time Reading – Faulting Process

Object Traversals

N+1 Reads Problem

N+1 Reads Problem

N+1 Reads

Queries

Query Requirements

Transaction Management

Database Triggers

Database Triggers

Cascaded Deletes

Referential Integrity

Caching

Caching

Locking

Optimistic Locking

Pessimistic Locking

Other Impacts

Summary of O/R

TopLink XML

TopLink XML – Problem Space

XML in J2EE

3 Levels of XML Representation

Application Uses of O-X

TopLink XML Solution

TopLink XML Advantages

TopLink Support beyond JAXB

Sample Object Model

Direct Mapping

Composite Object Mapping

Composite Collection Mapping

Positional Information

Path Information

Employee Class Model

Direct Collection Mapping

Object Type Converter

Transformation Mapping

Simple Type Translator

Namespace Support

Complex Type Inheritance

O-X Future Features

Slide 71

Slide 72