JPA Shopping List
You need just a few items to get up and running with JPA:
- One or more entity classes
- EntityManager instance
- EntityTransaction instance
- Persistence unit written in XML
- Database engine
Once you have these bits and pieces organized, you're ready to start implementing your persistence solution. Think it sounds difficult? Well, it's not! Let's get started with the entity class.