Multiple choice technology programming languages

____ forces hibernate to bypass the setter method and access the instance variable directly while initializing a newly loaded object.

  1. By mapping the property with access="onlyfield" in Hibernate metadata

  2. By mapping the property with access="variable" in Hibernate metadata

  3. By mapping the property with access="field" in Hibernate metadata

  4. none of the above

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

Mapping a property with access="field" tells Hibernate to use reflection to access the entity instance variables directly, bypassing getters and setters. Options like 'onlyfield' and 'variable' are not valid Hibernate access strategies.