Hi,
I also got the similar problem as metioned.
I found the solution at the faq sections as mentioned below.
http://www.hibernate.org/116.html#A14
************* text from the faq sections**************
Unlike other Hibernate value types, Hibernate tracks actual collection instances using Java identity, ==. Your getter method should return the same collection instance as was assigned by Hibernate to the setter method (unless you don't mind the collection being removed and recreated every time the session is flushed).
**************************************************
However, I really don't understand what they mean by "your getter method should return the same collection instance as was assigned by hibernate to the setter method"
I think my getter method already return the same collection.Below are my code
Code for getter and setter method
public class User {
private Set gameCharacter = new HashSet();
public void setGameCharacter(Set vec)
{
gameCharacter=vec;
}
public Set getGameCharacter()
{
return gameCharacter;
}
}
Can anyone guide me if there is anything wrong.