出现此问题可用Sessionfactory sf=new configuration().configuration.buildSessionFactory();
hbm2ddl.auto update
或者忘记在cfg配置mapping这是很容易望的
顺序
1cfg
2 实体
3hbm
4去cfg添加mapping
出现此问题可用Sessionfactory sf=new configuration().configuration.buildSessionFactory();
hbm2ddl.auto update
或者忘记在cfg配置mapping这是很容易望的
顺序
1cfg
2 实体
3hbm
4去cfg添加mapping