0 Replies Latest reply on Dec 14, 2009 12:01 PM by kesson

    Duplicate Set entry when merging injected object.

    kesson

      Hi all,
      I have some weird problem that looks like Hibernate bug or something like that... I try to modify several properties of object, that is injected into the bean class, and one of the changes I make is adding a new item to a property that is Collection (Set). Everything is going fine, except the new item of Set - it is inserted twice into DB after merging the object! If I don't use injected value, but load the object, this doesn't happen, but, of cource, the object is not being refreshed. Of course, I preffer to work with injected value, and not to reload objects each time. Have anybody encountered such a problem?


      Thanks in advance.