1. dao generations fixes 2. cascade-type to mode