formulate JPA method to update column

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
6 Replies
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @bambyzas! 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.
tjoener
tjoener6mo ago
If it's JPA, just find the record and set the property, that's all
i hate SQL so much its unreal
i was thinking that maybe i can formulate a method name and JPA would take of the query
tjoener
tjoener6mo ago
not that I know of
i hate SQL so much its unreal
okay, then ill stick to ur method. thanks bro
JavaBot
JavaBot6mo ago
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. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?