Multiple choice technology web technology

hibernate is a object relational mapping framework.

  1. gives an error

  2. generates ID automatically

  3. throws exception

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Hibernate automatically generates unique identifiers for entities based on the configured generator strategy (like 'increment', 'native', 'uuid', etc.). This is a core feature of Hibernate - you don't need to manually generate or manage primary keys. The framework handles this through the element in mapping files or annotations.