Multiple choice technology programming languages

How can a whole class be mapped as immutable?

  1. a) By using the mutable="false" attribute in the class mapping.

  2. b) By using the ismutable="false" attribute in the class mapping.

  3. c) By using the ismutable="no" attribute in the class mapping.

  4. d) None

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

In Hibernate ORM mapping, the mutable="false" attribute tells Hibernate that the entity's state never changes after initialization. This allows Hibernate to optimize performance by skipping dirty checking during flush operations for this entity. The ismutable attribute name doesn't exist in Hibernate.