db4o |

# ObjectInfo.getVersion Method

returns the transaction serial number ("version") the referenced object was stored with last.

long getVersion();

#### Return Value

the version number.

#### Remarks

returns the transaction serial number ("version") the referenced object was stored with last. Version number generation has to be turned on, in order to be able to use this feature: generateVersionNumbers

#### See Also

ObjectInfo Interface | com.db4o.ext Namespace