Support for jpa queries