When Hideyoshi died in 1598, he hoped to have his five-year-old son continue his  dynasty,  initially under the tutelage of five regents.
When he died in 1598, his son was already prepared to take the throne.