refactor ddl to bean gen