
Hibernate
文章平均质量分 59
iteye_8567
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
注解annotation
1.hibernate注解 声明实体Bean @Entity public class Flight implements Serializable { Long id; @Id public Long getId() { return id; } public void setId(Long id) { this.id = id; } } @En...原创 2014-08-05 16:15:03 · 193 阅读 · 0 评论 -
hibernate 自增长配置
不同数据库 自增长ID配置 正对不同的数据库可以同时使用 @Id @GeneratedValue(strategy = GenerationType.AUTO)2 针对mysql @Id @GeneratedValue(strategy = GenerationType.IDENTITY)3 针对oracle @Id @GeneratedV...原创 2015-01-22 10:58:29 · 381 阅读 · 0 评论 -
saveAndFlush and save
On saveAndFlush, changes will be flushed to DB immediately in this command. With save, this is not necessarily true, and might stay just in memory, until flush or commit commands are issued. But ...原创 2015-01-23 18:56:06 · 3969 阅读 · 0 评论