cmp2 : EJB 2.0 Container Managed Persistence

Examples Showing One to one Relationship

One to One Unidirectional Relationship: Customer --> Address

One to One Bidirectional Relationship: Customer <--> CreditCard

One to Many Unidirectional Relationship: Customer --> Phone

Run the tests?

Examples Showing Many/One to One/Many Relationship

Many to One unidirectional Relationship: Cruise --> Ship

One to Many bidirectional Relationship Cruise <--> Reservation

Many to Many bidirectional Relationship Customer <--> Reservation

Many to Many unidirectional Relationship Reservation --> Cabin

Run the tests?

Examples Showing Sample EJB-QL

Run the tests?