Interface JavaBeanVersion

    • Method Detail

      • getBeanVersion

        default int getBeanVersion()
        Returns the version number of this JavaBean.

        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.