posted 11 years ago
"identity" is a datatype peculuar to a few RDBMS implementations that can be used to generate a primary key. Telling Hibernate to use that directly limits the databases your code will work against. "native" delegates to one of a few native primary key generation strategies provided by the database. this might include identity, or it might be sequence of hilo.