List <Object[]> bookRevisions = linkController.getHistoricalBook(book.getBookId());
for(Object[] revisionData: bookRevisions)
{
Book temp = (Book) revisionData[0]; // note use of array notation to retrieve historical records
DefaultRevisionEntity rev = (DefaultRevisionEntity) revisionData[1];
System.out.print(temp.getTitle()+" ");
System.out.print(temp.getAuthor()+" ");
System.out.print(rev.getId()+" ");
System.out.print(rev.getRevisionDate()+" ");
RevisionType revType = (RevisionType) revisionData[2];
System.out.println(revType);
}
}