Getting started with JPA

Related slides on offer

Figure 826. Why using JPA ? Slide presentation Create comment in forum

Figure 827. What about impedance? Slide presentation Create comment in forum
  • Borrowed from electronics.

  • Combining resistance and inductance.

  • Relevant when coupling subsystems.


Figure 828. OR impedance mismatch Slide presentation Create comment in forum
OO Relational
Encapsulation by interfaces Views
Inheritance / polymorphism -
Opaque references Explicit foreign key values
Object composition Foreign key references
- Transactions
Type differences e.g. String CHAR, VARCHAR(...)

Figure 829. JPA 2.0 Slide presentation Create comment in forum
  • Expanded object-relational mapping functionality.

  • Criteria query API.

  • SQL hints.

  • Validation support.


Figure 830. JPA 2.1 Slide presentation Create comment in forum
  • Converters: Database to object types.

  • Criteria bulk update/deletes.

  • JPQL/Criteria enhancements.

  • Entity Graphs.

  • Stored Procedures.


Figure 831. JPA 2.2 Slide presentation Create comment in forum
  • Repeatable annotations.

  • Stream query results.

  • Support Java 8 Date and Time types.


Figure 832. JPA overview Slide presentation Create comment in forum

Figure 833. JPA components Slide presentation Create comment in forum
EntityManagerFactory

Bootstrapping a provider's implementation.

EntityManager

Managing a persistence context.

EntityTransaction

Start, commit and rollback transactions.

Query

Executing OO capable queries.