#formulate JPA method to update column

1 messages · Page 1 of 1 (latest)

torn copper
#

hey guys. i have a question about java spring. i have a DB table and a repository in my code. in my service i want to find a DB row/record by transactionId, and change record's status column/field value. i was thinking about boolean updateSalesOrderByTransactionId(@Param("transactionId")); but i dont know how to say that i want to update status column? can smb help me out? thanks

jade parcelBOT
#

This post has been reserved for your question.

Hey @torn copper! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

deft tusk
#

If it's JPA, just find the record and set the property, that's all

torn copper
deft tusk
#

not that I know of

torn copper
#

okay, then ill stick to ur method. thanks bro

jade parcelBOT