![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate
文章平均质量分 59
iteye_8567
这个作者很懒,什么都没留下…
展开
-
注解annotation
1.hibernate注解声明实体Bean @Entitypublic 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 · 161 阅读 · 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 · 305 阅读 · 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 · 3879 阅读 · 0 评论