start
Update
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + UPDATES_KEY + " SET "
+ UPDATE_START_DATE_KEY + "=:" + UPDATE_START_DATE_KEY + ","
+ UPDATE_STARTED_BY_KEY + "=:" + UPDATE_STARTED_BY_KEY + ","
+ UPDATE_STATUS_KEY + "= 'IN_DEVELOPMENT'"
+ " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to start an existing ProjectUpdate
Parameters
updateId
: the update identifier
startDate
: the start date of the update
startedBy
: who start the update