How do I treat a unique field when doing an update with hibernate.
It displays the duplicate field msg.
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '41987523699' for key 'UK_4yakf5drp3py7vaalfeb1mrv7'