https://gist.github.com/scottmarlow/6367600 contains 95% of my findings. I just need to hunt down the cause of the CriteriaBuilder test failures.