0
Using Oracle Sequence in Hibernate
For using sequence create in oracle in hibernate, make following confguration
<class name="className" table="tableName"schema="databasename">
<id name="id" type="java.lang.Long"unsaved-value="null" column="ID">
<generatorclass="sequence">
<paramname="sequence">USERS_SEQ</param>
</generator>
</id>
<class name="className" table="tableName"schema="databasename">
<id name="id" type="java.lang.Long"unsaved-value="null" column="ID">
<generatorclass="sequence">
<paramname="sequence">USERS_SEQ</param>
</generator>
</id>