This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Hibernate is saving the id as -E.000E-78
 
Similar Threads
hibernate primary key mapping - sequence
junk values for the id property
PropertyAccessException: IllegalArgumentException occurred calling getter
why my oracle sequence id increases by 2 when I use hibernate to insert
Oracle Sequence