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 1345d515d2
commit 45e76918e8
1 changed files with 9 additions and 0 deletions

View File

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