Project

General

Profile

Revision 57f91fb2

ID57f91fb2db32a59d0df5bd72faa837219c1a4ad5
Parent edfed701
Child 6e5fc434

Added by Andreas Kohlbecker over 2 years ago

fix #7368 implementing isPersisted() in CdmBase

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/CdmBase.java
59 59
import eu.etaxonomy.cdm.jaxb.DateTimeAdapter;
60 60
import eu.etaxonomy.cdm.jaxb.UUIDAdapter;
61 61
import eu.etaxonomy.cdm.model.NewEntityListener;
62
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy;
63
import eu.etaxonomy.cdm.strategy.match.IMatchable;
64 62
import eu.etaxonomy.cdm.strategy.match.Match;
65 63
import eu.etaxonomy.cdm.strategy.match.MatchMode;
66 64

  
......
331 329
         return HibernateProxyHelper.isInstanceOf(this, clazz);
332 330
     }
333 331

  
332
    @Override
333
    public boolean isPersited() {
334
        return id != 0;
335
    }
336

  
334 337
// ************* Object overrides *************************/
335 338

  
336 339
    /**
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/ICdmBase.java
66 66
     */
67 67
    public boolean isInstanceOf(Class<? extends CdmBase> clazz);
68 68

  
69
    /**
70
     * @return if and only if the instance has been saved to the persistent storage.
71
     * For new and un-persisted entities this method returns false.
72
     */
73
    public boolean isPersited();
74

  
69 75
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)