An early tutorial of a standalone Cayenne JPA application is available here. Check the README.txt file in the tutorial archive for details.