publish
Update
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + UPDATES_KEY + " SET "
+ UPDATE_PUBLISH_DATE_KEY + "=:" + UPDATE_PUBLISH_DATE_KEY + ","
+ UPDATE_PUBLISHED_BY_KEY + "=:" + UPDATE_PUBLISHED_BY_KEY + ","
+ UPDATE_STATUS_KEY + "= 'PUBLISHED'"
+ " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to publish an existing com.tecknobit.pandoro.services.projects.entities.ProjectUpdate
Parameters
updateId
: the update identifier
publishDate
: the publishing date of the update
publishedBy
: who publish the update