Installing Cayenne for JPA use is not much different from the procedure described here. A few JPA specific notes:
TODO: include jpa.jar and other JPA dependencies in Cayenne distro
Note that you can get all dependencies described below at once from a tutorial project that can be downloaded from here.