Sun Java Solaris Communities My SDN Account Join SDN
 

JavaOne Online Technical Sessions

Pump Up Your Technical Knowledge
Listen and watch as industry luminaries bring you the latest on Java technologies
Begin Product Tab Sub Links Active Sub LinkJavaOne Technical Sessions JavaOne Hands-on Labs

Java Persistence API: Best Practices and Tips
TS-4902


Presenter: Rima Patel Sriganesh, Sun Microsystems, Inc.; Marina Vatkina, Sun Microsystems, Inc.


It has been almost a year since the release of the Java Persistence API specification, and many enterprise developers have started using this technology in their Java EE and Java SE applications. As a consequence, the recurring questions JPA developers have been posing need to be addressed. This session goes through some of the best practices for designing efficient JPA applications and presents techniques for achieving functionality in JPA-based applications that is currently lacking in the core API.

The session covers the following topics:

  • Basics of high-performance JPA entities
    • Flush mode
    • Locking strategy
    • Caching
  • Whether to use a container-managed or application-managed entity manager in web tier applications
  • Generated primary keys--are they as simple as they sound?
  • Scenarios regarding detach and merge
  • Bulk updates and deletes--things to remember
  • Impact of data model on entity performance
  • Tips for mapping objects to related data
  • Mapping overrides using XML
  • Transactions and entities
    • Transaction isolation levels
  • Using stored procedures with JPA

Watch The Session
You need to be a registered Sun Developer Network member to view this multimedia session. If you are a registered SDN member, please click on "Watch Multimedia" button to log-in to view the multimedia session. If you wish to join SDN, please click here.

 
 
FREE White Papers on Java SE, Java EE, cloud computing and database technologies.
New SDN Member Only Offers Every Month Discounts, FREE white papers and more!
Java University and JavaOne Training Sessions

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.