Results 1 to 1 of 1
Thread: Hibernate_Sequence
- 10-08-2010, 04:49 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 1
- Rep Power
- 0
Hibernate_Sequence
Hi,
Am using hibernate in my project.
I had configured like,
<id name="id" column="REPORTUSER_ID" type="java.lang.Integer">
<generator class="native"/>
</id>
in Test.hbm.xml
Also i have hibernate_sequence in my database(Oracle 9i).
I had deployed my application in apache tomcat 6.0.
But wen i try to insert a new record sequence is not running.
Instead null value is set in the place. See the query below.
Hibernate: insert into REPORT_USER (NAME, PASSWORD, EXTERNAL_ID, EMAIL_ADDRESS, PDF_EXPORT_TYPE, DEFAULT_REPORT_ID, REPORTUSER_ID) values (?, ?, ?, ?, ?, ?, null).
What could be the problem??
Awaiting for the responses.
Thanks you.


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks