Topic: 求助:关于MySQL数据库的主键 |
Print this page |
1.求助:关于MySQL数据库的主键 | Copy to clipboard |
Posted by: KevinTian Posted on: 2005-01-05 12:26 在MySQL中,主键可以是把一个Integer的Field设置为Autoincrement。 那么在写Hiberbate的永久性描述符是该怎么设定主键呢 |
2.Re:求助:关于MySQL数据库的主键 [Re: KevinTian] | Copy to clipboard |
Posted by: getup Posted on: 2005-01-18 09:06 主键类似这样申明就可以: <id name="id" type="Integer" column="ID" unsaved-value="null" > <generator class="identity" /> </id> |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |