接口 UserVersionType

    • 方法详细资料

      • seed

        Object seed​(SharedSessionContractImplementor session)
        Generate an initial version.
        参数:
        session - The session from which this request originates. May be null; currently this only happens during startup when trying to determine the "unsaved value" of entities.
        返回:
        an instance of the type
      • next

        Object next​(Object current,
                    SharedSessionContractImplementor session)
        Increment the version.
        参数:
        session - The session from which this request originates.
        current - the current version
        返回:
        an instance of the type