JPA traps for the unwary