Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

Update only changed values  RSS feed

 
Aju Babu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
The data object coming into the dao has only changed values from the user - the other values are null - How to do this update ( I do NOT want to dynamically build the update sql)
Thanks
 
William Barnes
Ranch Hand
Posts: 1049
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Define every parameter as "not null-able"?
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Report post to moderator
Aju Babu, Welcome to Javaranch.

Please dont make cross post.
I am closing this thread and leaving the other one for you..
Thank you.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!