jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes Hibernate is saving the id as -E.000E-78 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate is saving the id as -E.000E-78" Watch "Hibernate is saving the id as -E.000E-78" New topic

Hibernate is saving the id as -E.000E-78

Vishwas T Prasanna

Joined: Jan 18, 2006
Posts: 8
I am using oracle sequence for generating for values for the id property and my mapping is as given below..

<id name="id" column="id" type="integer" unsaved-value="null">
<generator class="sequence">
<param name="sequence">USER_SESSIONS_SEQ</param>

but when when i save the object, hibernate is saving -E.000E-78 this kind of values into the table..

Plz Plz can any body help me...
I agree. Here's the link: http://aspose.com/file-tools
subject: Hibernate is saving the id as -E.000E-78
It's not a secret anymore!