Java Persistence API 2.0 – An Overview

Java Persistence API, JPA essentials, JPA Optimistic Concurrency, jpa 1.0 annotations, Sample mapping capabilities, Criteria API, Richer Mapping, Java SE, Embeddable Types, Builder pattern, Standard Properties, brief history, new features, Type-safe

More PDF Content

Java Persistence API 2.0 – An Overview

  • Alexis Moussine-Pouchkine, Oracle Corp.
  • mercredi 16 fevrier 2011
  • Agenda
  • JPA, essentials
  • JPA 2.0
    • Expanded O/R mappings
    • Standard options
    • Pessimistic locking
    • Criteria API
  • Relationship to Java EE 6
  • Implementations
  • Tools

A brief history

  • Java Persistence 1.0
    • Part of the EJB 3.0 simplification effort (JSR 220) in 2006
    • Standardized object/relational mapping
    • Covered most of the essential features, a great start
    • Available as part of the Java EE 5 Platform or standalone
  • Java Persistence 1.0
    • Part of the EJB 3.0 simplification effort (JSR 220) in 2006
    • Standardized object/relational mapping
    • Covered most of the essential features, a great start
    • Available as part of the Java EE 5 Platform or standalone
  • Java Persistence 2.0
    • More and better (JSR 317)
    • Greater portability for application developers
    • Available as part of the Java EE 6 Platform or standalone
  • JPA essentials – Entities
  • @Entity-annotated POJOs
  • Basic types
    • Strings, integers, floats, decimals, …
  • Embeddable classes
  • Relationships
    • One-to-one, one-to-many/many-to-one, many-to-many
    • Col ections: java.util Collection, Set, List, or Map
    • Customized via metadata: @JoinColumn, 
  • @JoinTable, …
  • Inheritance
    • Single table, joined subclass, table per class (optional)

Java Persistence API 2.0 – An Overview, Agenda, A brief history, JPA essentials – Entities, JPA essentials – EntityManager, JPA 1.0 Annotations, Java SE, Queries, JPA Optimistic Concurrency, JPA 2.0 new features, JPA 2.0 Richer Mapping, Sample mapping capabilities, Collections of Embeddable Types, Standard Properties, Criteria API, Type-safe, Builder pattern
 

Download Java Persistence API 2.0 - An Overview pdf from www.javaone.ru, 34 pages, 815.05KB.