What year did Germany occupy Poland Prior to World War I?

Poland was forcibly partioned between Prussia, Austria and Russia in three stages - in 1772, 1793 and 1795.