Menu

Copy private propertie.

Help
2007-10-25
2013-04-25
  • Emilio Bravo

    Emilio Bravo - 2007-10-25

    Hello, I have tried to replicate a Hibernate object whit a private attribute version and only get method (getVersion()), the problem is that the replicate object don´t obtain the version attribute´s value.

    This attribute version is necessary for optimistic lock in Hibernate and the value is lost in the replication.

    Is there any way to replicate this value?

    Thanks.

     
    • Hanson Char

      Hanson Char - 2007-10-25

      It would be replicated across if it has both setter and getter.  Try adding setVersion to the class ?

       

Log in to post a comment.