Hi All,
I have userprofile table in my DB, and in the table i have column userprofilekey as primary key, and userid as another column,
TransactionManager.begin(); userProfileDto = (UserProfileDto)getSession().get(UserProfileDto.class, userProfileDto.getId()); userProfileDto.setUserId("WSSuser123"); getSession().update(userProfileDto); TransactionManager.commit(); getSession().close();
when i update from dao class, I am getting the below error [IBM][SQLServer JDBC Driver][SQLServer]Cannot insert duplicate key row in object 'dbo.UserProfile' with unique index 'IXU_UserProfile_2'.
any suggestions please
|