HHH-10773 - Add a toString() implementation to the READ_WRITE Ehcache Item object

This commit is contained in:
Vlad Mihalcea 2016-05-19 16:09:48 +03:00
parent 2ba9b98cbc
commit d70c2c04ef
1 changed files with 9 additions and 0 deletions

View File

@ -273,6 +273,15 @@ abstract class AbstractReadWriteEhcacheAccessStrategy<T extends EhcacheTransacti
public Lock lock(long timeout, UUID uuid, long lockId) { public Lock lock(long timeout, UUID uuid, long lockId) {
return new Lock( timeout, uuid, lockId, version ); return new Lock( timeout, uuid, lockId, version );
} }
@Override
public String toString() {
return "Item{" +
"value=" + value +
", version=" + version +
", timestamp=" + timestamp +
'}';
}
} }
/** /**