Enterprise Development with the Java Persistence API
The recently-released EJB 3.0 specification has perhaps been one of the most talked-about technologies that has emerged from JCP for some time. At the centre of attention is the Java Persistence API, a lightweight persistence model that acts as a point of convergence for the dominant persistence products currently on the market. Standardization of persistence inside of the Java EE platform, as well as in the SE environment, will finally provide enterprise applications with the ability to write to one API and be able to run on the vendor of their choice. This talk will cover best practices and common usage patterns of the Java Persistence API in conjunction with a Java EE application server. We will assume some basic understanding of the Java Persistence API; you might want to attend "Using the Java Persistence API" before lunch to learn about some of the basics of the new API.
Some of the topics discussed in this talk:
- Enterprise entity models
- EntityManagers and persistence context propagation
- Entity caching
- Detaching and merging entities
- Entities in enterprise transactions
- Packaging and deploying
We will address the following common design questions:
- Should I use field or property access type?
- How often should I detach / merge?
- What sorts of restrictions should I follow when I design my entity object model?
- Can I put behavior in my entities?
- What transactional guarantees can I rely on?
Audience
Intermediate / Advanced
Speaker
Interesting Links