How to update only a subset of entity attributes using JPA and Hibernate @DynamicUpdate

Introduction One of my Twitter followers asked me to answer the following question on StackOverflow. This article aims to explain various techniques for controlling the UPDATE SQL statement that is executed whenever an entity is modified by the data access layer.