oracle 配置序列id 得加上 type="pre"

来源:互联网 发布:人工智能类似电影 编辑:程序博客网 时间:2024/06/07 18:40
<selectKey resultClass="long" keyProperty="id" type="pre">  
        select SEQ_adp_model_cate_limit_ID.NEXTVAL from DUAL  
    </selectKey> 

---序列
create sequence SEQ_adp_model_cate_limit_ID
minvalue 1
maxvalue 9999999999999999999999999999
start with 1
increment by 1
cache 20;
0 0