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
#formulate JPA method to update column
1 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @torn copper! Please use
/closeor theClose Postbutton 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.
If it's JPA, just find the record and set the property, that's all
i was thinking that maybe i can formulate a method name and JPA would take of the query
not that I know of
okay, then ill stick to ur method. thanks bro
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.