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>

|

0 Comments

Copyright © 2009 So That I Can Remember All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.