• Post Reply Bookmark Topic Watch Topic
  • New Topic

update attribute for property element in hibernate  RSS feed

Chaitanya Rach
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The property element of Hibernate has attributes update, insert and as per documentation it states that - http://docs.jboss.org/hibernate/orm/3.3/reference/en-US/html/mapping.html#mapping-declaration-property

update, insert (optional - defaults to true): specifies that the mapped columns should be included in SQL UPDATE and/or INSERT statements. Setting both to false allows a pure "derived" property whose value is initialized from some other property that maps to the same column(s), or by a trigger or other application.

Please help me in understanding how it behaves if its value is set as 'false' instead of 'true'. What is the derived property here?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!