public interface JavaBeanVersion
Modifier and Type | Method and Description |
---|---|
default int |
getBeanVersion()
Returns the version number of this JavaBean.
|
default int getBeanVersion()
At data model compilation this version number is used to check if the implementation of this JavaBean has changed, so that existing persisted validation reports are impacted accordingly.
As a consequence, the returned version number MUST BE UPDATED whenever this JavaBean behavior is changed. Otherwise existing validation reports will be inconsistent and their content might be erroneous.
Default returned value is 0.