if(value instanceof Collection) {
Collection col = (Collection) value;
if(col.getCacheConcurrencyStrategy()!=null) { // caching is enabled
if (!col.getElement().isSimpleValue()) {
String entityName = (String) col.getElement().accept( new EntityNameFromValueVisitor() );
if(entityName!=null) {
PersistentClass classMapping = configuration.getClassMapping( entityName );
if(classMapping.getCacheConcurrencyStrategy()==null) {
collector.reportIssue( new Issue("CACHE_COLLECTION_NONCACHABLE_TARGET", Issue.HIGH_PRIORITY, "Entity '" + classMapping.getEntityName() +"' is referenced from the cache-enabled collection '" + col.getRole() + "' without the entity being cachable"));