Your problem can be addressed in two parts.
1)
Database-Design - You have a table with two columns UserId[PK] and SenderId[Unique]. You are trying to insert records with same SenderId for multiple users and its not allowing you to do it. Isn't it obvious?
Why you have declared SenderId as Unique when you want to assign a perticular SenderId to multiple users. Remove the Unique constraint and then try again.
2)
Hibernate - For Hibenate you may have a look at below link.
Hibernate Getting Started Guide