Hi, I have had a look for your Thomas Hartley on the 1851 Dorchester- Holy Trinity - no joy I'm afraid, I also searched the two other parishes and a couple of villages close to Dorchester. No sign of Thomas although some of the transcriptions are rather poor,I don't think he's there. If you've any additional info let me know and I'll see what I can do.
Regards
Lorna