-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: values > 999999999
PostPosted: Fri Oct 17, 2008 7:28 am 
Newbie

Joined: Fri Oct 17, 2008 7:13 am
Posts: 2
I've got a problem with large key values in Hibernate version: 2.1.
In my talbe I got a key field defined as follows:

Code:
<id
      name="hausarztID"
      column="AZNR"
      unsaved-value="null"
      access="field"
      type="de.bsdwest.basweb.core.persistence.type.DRKLongType">
      <meta attribute="property-type">Long</meta>
<generator class="de.bsdwest.basweb.core.persistence.sequence.BWSequenceGenerator">
<param name="schema">BASDTA</param>
</generator>
</id>



As you can see the field is defined as long. Everything works fine with values from 0 to 999999999. If the value is 1000000000 or greater the following error occurs:


Code:
[17.10.08 12:02:27:443 CEST] 1b3823a2 JDBCException W net.sf.hibernate.util.JDBCExceptionReporter  SQL Error: -99999, SQLState: 07006
[17.10.08 12:02:27:443 CEST] 1b3823a2 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter  Data type mismatch.
[17.10.08 12:02:27:459 CEST] 1b3823a2 JDBCException W net.sf.hibernate.util.JDBCExceptionReporter  SQL Error: -99999, SQLState: 07006
[17.10.08 12:02:27:474 CEST] 1b3823a2 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter  Data type mismatch.
[17.10.08 12:02:27:506 CEST] 1b3823a2 HausarztVerwa E de.bsdwest.basweb.hausarzt.control.HausarztVerwaltungSuchenAuslesenAction  Unhandled technical exception:
[17.10.08 12:02:27:521 CEST] 1b3823a2 HausarztVerwa E de.bsdwest.basweb.hausarzt.control.HausarztVerwaltungSuchenAuslesenAction  TRAS0014I: Die folgende Ausnahmebedingung wurde protokolliert: Exception-LogMessage:[4000] Fehler bei Query-Operation bzw. Erstellung
de.bsdwest.basweb.core.persistence.PersistenceException: Unable to perform find
   at de.bsdwest.basweb.core.persistence.BasWebPersistenceManager.findUniqueByCriteria(BasWebPersistenceManager.java:347)


Is there some kind of maxvalue for hibernate ?

Ralf


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.