broken jpa stuff