Joined: Thu Sep 22, 2011 4:01 am Posts: 1
|
Hi, I am newbie to hibernate. Scenario of my application is like: My SQL DB table has identity column (say column as ID) and in hibernate it is configured as
<id name="id" type="java.lang.Long"> <column name="ID" precision="18" scale="0" /> <generator class="identity" /> </id>
Now In my web application I have to see next ID of this column in read only text box. In my standalone application (where hibernate was not there) using I retrieved it using IDENT_CURRENT('tablename') in sql query but how can I achieve same using hibernate.
I am using hibernate 3.0
Thanks in advance..
|
|