add generated to dao