org.hibernate.type.IntegerType:
Code:
public Object next(Object current, SessionImplementor session) {
return new Integer( ( (Integer) current ).intValue() + 1 );
}
In short, no it doesn't roll over like your odometer. You are aware of Integer.MAX_VALUE and what that implies right?
http://java.sun.com/j2se/1.4.2/docs/api ... .MAX_VALUE
That's a LOT of versions. 2,147,483,647 Not enough? Use long instead. That'll get you all the way up to 9,223,372,036,854,775,807 at which time you are welcome to reply to this thread and I'll provide you with a workaround :)
-Chris