WCP-123 Setup explicit cache configuration

updated JPA managed objects to only apply caching where needed
updated managed object references to ensure correct type saftey was enforced
used entity primary keys instead of natural ids where possible