jpa wont work as expected