protected String buildKey ( final Class < ? > clazz , final String id , final Number revision ) { if ( revision != null ) { return clazz . getSimpleName ( ) + "-" + id + "-" + revision ; } else { return clazz . getSimpleName ( ) + "-" + id ; } }
Build the unique key to be used for caching entities .