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? thanks6 Replies
⌛
This post has been reserved for your question.
Hey @bambyzas! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
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.
💤
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.