Ok i found the problem thx to maxb_ from hiberante irc channel who pointe me the HIbernate manual.
http://docs.jboss.org/hibernate/stable/ ... -generatorAlso int the book Java Persistence with Hiberante there is :
"At Hibernate startup, this generator reads the
maximum (numeric) primary key column value
of the table and increments the value by one
each time a new row is inserted. The generated
identifier is of type long, short, or
int. This generator is especially efficient if
the single-server Hibernate application has
exclusive access to the database but should
not be used in any other scenario."