work on jpa with queries