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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
It would be replicated across if it has both setter and getter. Try adding setVersion to the class ?