File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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:
subject: Hibernate is saving the id as -E.000E-78
jQuery in Action, 3rd edition