当然可以,个人习惯,我用hibernate注解时候喜欢根据实体类来生成数据库表,例子如下:Configuration cfg = new Configuration().configure();SchemaExport export = new SchemaExport(cfg); export.create(true, true);