Project

General

Profile

« Previous | Next » 

Revision 479c80d3

Added by Andreas Müller almost 9 years ago

improve handling of titlecache in terms #3148

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/IdentifiableEntity.java
178 178
        PropertyChangeListener listener = new PropertyChangeListener() {
179 179
            @Override
180 180
            public void propertyChange(PropertyChangeEvent ev) {
181
                if (!ev.getPropertyName().equals("titleCache") && !ev.getPropertyName().equals("cacheStrategy") && ! isProtectedTitleCache()){
181
                if (! "titleCache".equals(ev.getPropertyName()) && !"cacheStrategy".equals(ev.getPropertyName()) && ! isProtectedTitleCache()){
182 182
                    titleCache = null;
183 183
                }
184 184
            }
......
227 227
        this.protectedTitleCache = protectCache;
228 228
    }
229 229

  
230

  
231 230
    /**
232 231
     * @param cache
233 232
     * @return

Also available in: Unified diff