ETAG / @version support in the core
Created by: tsodring
All the Noark entities should throw an exception if the version numbers don't match. I thought this was done, but see now it's only been added to Fonds.java.
The best approach here would be to have a base class and implement it once.
public void setVersion(Long version) {
if (this.version != version) {
throw new RuntimeException("Concurrency Exception. Old version [" + this.version + "], new version "
+ "[" + version + "]");
}
this.version = version;
}
This base class will probably be called NoarkEntity and all the Noark entities will extend this base class.