I know that when using Hibernate with Oracle, the identifier in the mapping file is defined as:
<id name="id" column="item_id">
<generator class="sequence">
<param name="sequence">NAME_OF_YOUR_SEQUENCE</param>
</generator>
</id>
You can also specify the generator class as "native", which is convenient if you then switch to automatically increasing RDMS, such as MySQL. After that, the sequence bit is ignored in MySQL.
Edit:
. , hibernate id. , , , .