sentences:  He served as a district attorney from 1839 to 1848.Hastings was elected as a Democrat to the Thirty-third Congress (March 4, 1853 – March 3, 1855).Hastings was elected judge of the county court of Livingston County and served from November 1855 until his death in Mount Morris, New York on August 29, 1866.