你再生成session 后,加上new SchemaExport(cfg).create(true, false);就可以了
就不再生成新的了,而是再原来的表里面增加数据
就不再生成新的了,而是再原来的表里面增加数据
解决方案 »
- AXIS2的Web Service服务端,用xfire客户端调用报“Could not find a service to invoke.”
- Hibernate问题提问
- 关于服务器监控的问题
- apache+tomcat配置url rewrite 的怪问题
- struts 中word文件下载问题~
- [请教]spring的单元测试,在eclipse中正常,但是在ant中报错。100分送上
- 关于weblogic服务器在jbuilder2005中出现的错误----〉进入
- struts时遇到的无法显示
- 怎样才能包含j2ee的类库,如javax.ejb? 我的环境是netbeans4.1+Sun AS8+PointDatabase
- 面试的时候问的我关于EJB的两个问题,谁能帮俺看看,小谢!
- 感觉pet store的文件结构似乎有点混乱,why?
- 请教dom4j的问题Premature end of file?
Configuration conf = new Configuration().configure();
new SchemaExport(conf).create(true, false);
sessionFactory = conf.buildSessionFactory();