Wednesday, January 25, 2012

Hibernate : Identifiers

Overview:
In Hibernate there are various ways of defining identifiers for table mapping. However, the following two are the most commonly and widely used strategies based on the underlying database.
identity

  • supported by DB2, MySQL, MS SQL Server, Sybase and HypersonicSQL.

  • The returned identifier is of type long, short or int.
sequence
  • supported by DB2, PostgreSQL, Oracle.

  • The returned identifier is of type long, short or int.

No comments:

Post a Comment