Multiple choice technology programming languages

How can you make a property be read from the database but not modified in anyway

  1. a) By using the insert="false" and update="false" attributes.

  2. b) By using the isinsert="false" and isupdate="false" attributes.

  3. c) By using the isinsert="no" and isupdate="no" attributes

  4. d) None

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

In Hibernate, making a property read-only from the application side (while still loading it from the database) is achieved by setting insert="false" and update="false" in the mapping XML or annotations. This tells Hibernate to retrieve the property value when loading objects but never include it in INSERT or UPDATE statements. Option A correctly states this. Options B and C use incorrect attribute names (should be 'insert' and 'update', not 'isinsert' and 'isupdate'), making them invalid.