Identifiers 对应的 database column

  • UNIQUE
  • NOT NULL - The values cannot be null. For composite ids, no part can be null.
  • IMMUTABLE - The values, once inserted, can never be changed

In cases where the values for the PK you have chosen will be updated, Hibernate recommends mapping the mutable value as a natural id, and use a surrogate id for the PK

results matching ""

    No results matching ""