db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McFall <mcf...@hope.edu>
Subject getMajorVersionNumber returning -1
Date Thu, 07 Jul 2011 15:12:12 GMT
I am using Derby with Hibernate, and am trying to get Hibernate to use
sequences for its identifier generation strategy.

When the DerbyDialect class is asked whether it supports sequences, it is
returning false.  Digging through the source indicates that this is because
the call to getMajorVersionNumber and getMinorVersionNumber are returning

I'm not sure why this is happening - I've taken a look at the derby source,
and am not sure why this might happen.  Does anyone know what might cause

Thanks for pointers - it seems this used to work but doesn't now.  I think
it might have something to do with the JAR files I have on my classpath,
based on a comment in the derby sources, but I don't see anything amiss.  I
have derbyclient on the classpath, and I'm pretty sure the driver is version


Ryan McFall
Associate Professor of Computer Science
Hope College
Holland, MI  49423
Email: mcfall@hope.edu
Phone: 616-395-7952
Fax: 616-395-7123

View raw message