Hello,
I have just discovered that the ReplicationMode.LATEST_VERSION actually replicates more data than it should.
In fact, unchanged versioned data is replicated from source to target, and this not necessary as far as I understand it.
Code:
public static final ReplicationMode LATEST_VERSION = new ReplicationMode("LATEST_VERSION") {
public boolean shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType versionType) {
if (versionType==null) return true; //always overwrite nonversioned data
return versionType.getComparator().compare(currentVersion, newVersion) <= 0;
}
};
So why the "lower than or equal operator" is used in the last return statement above ? Is there some obscur reason for this, or is it just a mistake ?
Thanks for your answer.
Regards,
Gregory[/code]