使用Hibernate_ID产生策略
时间:2007-01-01 来源:liulibo
id产生策略
increment 递增
identity MySQL
<id name="student_id" column="id">
<generator class="identity"/>
sequence Oracle递增序列
<id name="student_id" column="id">
<generator class="sequence">
<param name="sequence">person_seq</param>
</generator>
</id>
hilo 高低位
<id name="student_id" column="id">
<generator class="hilo">
<param name="table">high_val</param>
<param name="column">nextval</param>
<param name="max_lo">5</param>
</generator>
</id>
seqhilo 使用序列的高低位
<id name="student_id" column="id">
<generator class="hilo">
<param name="sequence">high_val_seq</param>
<param name="max_lo">5</param>
</generator>
</id>
native 本地 hibernate-sequence递增表
<id name="student_id" column="id">
<generator class="native"/>
</id>
assigned 程序设置
<id name="student_id" column="id">
<generator class="assigned"/>
</id>
foreign 外部引用
<id name="student_id" column="id">
<generator class="foreign">
<param name="property">student</param>
</generator>
</id>
increment 递增
identity MySQL
<id name="student_id" column="id">
<generator class="identity"/>
sequence Oracle递增序列
<id name="student_id" column="id">
<generator class="sequence">
<param name="sequence">person_seq</param>
</generator>
</id>
hilo 高低位
<id name="student_id" column="id">
<generator class="hilo">
<param name="table">high_val</param>
<param name="column">nextval</param>
<param name="max_lo">5</param>
</generator>
</id>
seqhilo 使用序列的高低位
<id name="student_id" column="id">
<generator class="hilo">
<param name="sequence">high_val_seq</param>
<param name="max_lo">5</param>
</generator>
</id>
native 本地 hibernate-sequence递增表
<id name="student_id" column="id">
<generator class="native"/>
</id>
assigned 程序设置
<id name="student_id" column="id">
<generator class="assigned"/>
</id>
foreign 外部引用
<id name="student_id" column="id">
<generator class="foreign">
<param name="property">student</param>
</generator>
</id>
相关阅读 更多 +
排行榜 更多 +

<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />
飞行射击 下载
<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />
飞行射击 下载
<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />
飞行射击 下载- 4 <img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />下载73.78MB · 97℃
1970-01-01
- 5 <img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />下载43.7 MB · 92℃
1970-01-01
- 6 <img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />下载110.69MB · 97℃
1970-01-01