Getting Started with JPA




Other Refcardz


thumb

Agile Adoption: Reducing Cost

Contents Include: About Agile Adoption, Four Strategies to Reduce Cost, The Practices, How to Adopt Agile Practices, Whats Next, References and more...


thumb

Dependency Injection in EJB 3

Features include Dependency Injection in EJB 3, Resource Injection, Injection of EJB References, Injecting JPA Resources, Using Spring with EJB 3, Hot Tips and more...

"Compact and extremely useful reference from one of the world's foremost authorities on EJB 3." --Reza Rahman


thumb

Agile Adoption: Decreasing Time to Market

About Agile Adoption, What Agile Practices Improve Time to Market, How to Adopt Agile Strategies Successfully, and Next Steps...


thumb

Apache Maven 2

This DZone Refcard gives Java developers a wide range of execution commands, tips for debugging Mavenized builds, and a clear introduction to the "Maven vocabulary".




Click Here To
Download PDF


Overview

Even though proprietary mapping products like Hibernate and TopLink still exist, they are now focused on providing their functionality through the JPA API, allowing all applications to be portable across JPA implementations. This refcard will give users enough to understand the basics of JPA and get started writing JPA applications. It covers entities, identifiers, O-R mappings, using an entity manager, creating and executing queries, and configuration of the persistence.xml file.

Features include Mapping an Object, Obtaining and Using an Entity Manager, Transactions, Querying, Hot Tips and more.


About the Author

Mike Keith was a co-lead of the EJB 3.0 and JPA 1.0 specifications and coauthored the premier JPA reference book called Pro EJB 3: Java Persistence API. He has 18 years of teaching, research and development experience in object-oriented and distributed systems, specializing in object persistence. He currently works as an architect for Java and persistence strategies at Oracle and represents Oracle on the JPA 2.0 and Java EE 6 expert groups. He has authored a host of articles and papers and is a popular speaker at numerous conferences and events around the world.

Publications

  • Pro EJB 3: Java Persistence API, Mike Keith and Merrick Schincariol, Apress, May 2006
  • ACM Queue, May/June 2008, Exposing the ORM Cache
  • JavaLobby, June 2008, Looking Forward to JPA 2.0–Part 2
  • JavaLobby, April 2008, Looking Forward to JPA 2.0–Part 1
Current Projects
  • Committer on Eclipse Persistence Project
  • Member of JSR 317–JPA 2.0
  • Member of JSR 316–Java EE 6
  • Member of JSR 318–EJB 3.1
  • Member of Java EE subcommittee of OSGi Alliance EEG