1.创建自增序列 2.对ID创建触发器 3.Userinfo.hbm.xml使得<generator class="increment"> 序列: MAXVALUE INCREMENT START CACHE ORDER NOCYCLE ; 触发器: create or replace trigger TRIG_USERINFO before insert on "USERINFO" for each row begin select SEQUENCE_
一篇英文博文,写的是利用hibernate处理存储过程中的游标等等: Motivation: While there are a few resources available online for calling stored procedures from Hibernate, it took me a while to stumble across one that mostly captures what I need. The intention of this blog entry