java - Hibernate update with same column -


sql statement:

update table set column = 'new_value' column = 'old_value' 

(same column name)

how in hibernate?

you may use entitymanager.merge() can lead nonuniqueobjectexception if there multiple results found same column name.

better use namedquery ot nativenamedquery achieve this.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -