
hibernate
iteye_14236
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
一个hibernate的连接配置,供以后使用
[b]Hibernate.cfg.xml[/b] [code="Hibernate"] com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/hibernate root root 5 20 1800 100 ...2011-05-29 18:07:50 · 141 阅读 · 0 评论 -
hibernate 第四章学习笔记(持久化类)
1、hibernate持久化类的4个主要规则 [list] [1]实现一个默认的无参构造方法 [2]为持久化类增加一个标识属性 [3]持久化类最好不要用final修饰 [4]为持久化类声明访问器(accesstor)和是否可变标志(mutator),理解是添加setter,getter方法,可变标志??isXXX [/list] 2、实现equals和hashCode方法 ...原创 2011-05-29 19:10:06 · 151 阅读 · 0 评论