Jpa Implementation of Object Query