
Hibernate
浪子_
ss
展开
-
hibernate 生成表
// TODO Auto-generated method stubFile file =new File("src/hibernate.cfg.mysql.xml");System.out.println(file.getAbsolutePath());Configuration config= new Configuration().configure(file);Sessio转载 2012-07-30 16:08:08 · 1960 阅读 · 0 评论 -
hibernate 根据配置文件生成 mysql表
1,设置方言 org.hibernate.dialect.MySQLDialect 2,连接地址 jdbc:mysql://localhost:3306/test3. update启动就ok了原创 2013-01-25 18:10:38 · 414 阅读 · 0 评论