Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vishwas T Prasanna
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic