hibernate自己手动设置id的配置

2014-11-24 02:08:48 · 作者: · 浏览: 0

做项目的时候,一般配置为自增长或uuid,但是今天要自己手动设置id。在User.hbm.xml中配置:

就可以自己手动设置id了。