gavin wrote:
<generator class="increment"/>
Oh, not this I want. 
What I need is A table to store sequences,like this:
table_sequence  (block increment is 15)
=========================
tablename ---+--- 
id_sequence
user    -----------+--- 105
company -----+----  45           
....
=========================
And there are table User and Company in DB, which ID generated in memory base on column sequence of table_sequence.  Only for the time that currentID > maxID in memory, we need to go to the database for the value of next block sequence. The size of block can initialize in a file,just as hbm.xml . 
Is this as well as "increment"?  I don't think so... 
Thanks for your reply ,gavin. I am a beginner of Hibernate, please tell me more, thanks a lot.