working jpa + normal db functionality - all cases