Revision 6e5fc434
Added by Andreas Kohlbecker about 6 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/ICdmBase.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import java.util.UUID; |
13 | 13 |
|
14 |
import javax.persistence.Transient; |
|
14 | 15 |
import javax.validation.GroupSequence; |
15 | 16 |
import javax.validation.groups.Default; |
16 | 17 |
|
... | ... | |
67 | 68 |
public boolean isInstanceOf(Class<? extends CdmBase> clazz); |
68 | 69 |
|
69 | 70 |
/** |
71 |
* Reports the persistend state of the cdm entity. If this method returns <code>true</code> it does not |
|
72 |
* necessarily mean that there is a database record already but |
|
73 |
* maybe the object was only saved to a persistence session, which still needs to be flushed to the storage engine. |
|
74 |
* |
|
70 | 75 |
* @return if and only if the instance has been saved to the persistent storage. |
71 | 76 |
* For new and un-persisted entities this method returns false. |
72 | 77 |
*/ |
78 |
@Transient |
|
73 | 79 |
public boolean isPersited(); |
74 | 80 |
|
75 | 81 |
} |
Also available in: Unified diff
ref #7368 isPersisted() @Transient and doc