public void feedDatabase() {
log.info("Running database import.");
// School
Category school = createCategory("School");
addTask(school, "Build the Turing machine");
addTask(school, "Finish the RESTEasy-Seam integration example");
addTask(school, "Learn new vocab for English conversations");
addTask(school, "Prepare a presentation for webdesign seminar");
addTask(school, "Print study materials", true);
em.persist(school);
// Work
Category work = createCategory("Work");
addTask(work, "Pick up meal tickets");
// Buy
em.persist(work);
Category buy = createCategory("Buy");
addTask(buy, "Buy milk");
addTask(buy, "Buy an infinite tape");
addTask(buy, "Order books");
addTask(buy, "Buy a turtle", true);
addTask(buy, "Buy new shoes", true);
addTask(buy, "Order camera", true);
em.persist(buy);
// Other stuff
Category other_stuff = createCategory("Other Stuff");
addTask(other_stuff, "Learn to fly", true);
addTask(other_stuff, "Visit grandma");
addTask(other_stuff, "Extend passport");
addTask(other_stuff, "Get a haircut");
addTask(other_stuff, "Pay bills", true);