Added getDocumentByEntity native query