This document discusses using Java Persistence API (JPA) and Java API for XML Binding (JAXB) to build RESTful web services. It explains how the HTTP methods in REST (GET, POST, PUT, DELETE) map to JPA operations (find, persist, merge, remove). It also identifies some pain points in mapping JPA entities with complex relationships and keys to XML using JAXB, and frameworks like EclipseLink that provide extensions to address these issues.