Crog/jpa config update

A new PR against master instead of old gutterball-hibernate branch.

Old PR is #750
You really shouldn't have needed this.