JPA best practices, tricks and tips.