导航

2018年4月5日

摘要: 第一个是hibernate基本的配置hibernate.cfg.xml — .hbm.xml... Hibernate: insert into user (id, name, password, say) values (null, ?, ?, ?) 第二个是hibernate的annotatio 阅读全文

posted @ 2018-04-05 21:53 孙土土 阅读(791) 评论(0) 推荐(0)

2013年2月21日

摘要: 刚开始用hibernate,做了两个例子。第一个是hibernate基本的配置hibernate.cfg.xml —>*.hbm.xml...Hibernate: insert into user (id, name, password, say) values (null, ?, ?, ?)第二个是hibernate的annotation的基本基本配置就是hibernate.cfg.xml—>实体类中加注解@entity...Hibernate: insert into Teacher (name, password, say, id) values (?, ?, ?, ?)然后 阅读全文

posted @ 2013-02-21 13:27 孙土土 阅读(784) 评论(0) 推荐(0)