wood burning stoves 2.0*
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
Author

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

Vishwas T Prasanna
Greenhorn

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>
</generator>
</id>

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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate is saving the id as -E.000E-78
 
Similar Threads
junk values for the id property
Oracle Sequence
why my oracle sequence id increases by 2 when I use hibernate to insert
hibernate primary key mapping - sequence
PropertyAccessException: IllegalArgumentException occurred calling getter