Determinism vs Abstraction: The cost of choosing JPA for simple DB queries

The most memorable of lessons are learnt not when we make things work but when things break. When one sets out seeking answers.