Skip to content
Advertisement

JPA update based on column name

I want to update value to a specific column entered by the user. Here are my codes, do anyone how to modify it to correct one?

JavaScript

Advertisement

Answer

You should go for criteria builder query for your case… if you are using JPA 2.1.. here is something you can should do

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement