T
- @MappedSuperclass public abstract class VersionableEntity extends CdmBase implements IVersionableEntity
CLOB_LENGTH, uuid
Constructor and Description |
---|
VersionableEntity() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this versionable entity.
|
protected java.util.Map<Language,LanguageString> |
cloneLanguageString(java.util.Map<Language,LanguageString> oldMap)
Convenience method to clone a LanguageString map
|
boolean |
equals(java.lang.Object obj)
Is
true if UUID and created timestamp (is this really needed/make sense?)
is the same for the passed Object and this one. |
org.joda.time.DateTime |
getUpdated() |
User |
getUpdatedBy() |
void |
setUpdated(org.joda.time.DateTime updated) |
void |
setUpdatedBy(User updatedBy) |
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public User getUpdatedBy()
getUpdatedBy
in interface IVersionableEntity
public void setUpdatedBy(User updatedBy)
setUpdatedBy
in interface IVersionableEntity
updatedBy
- updatedBypublic org.joda.time.DateTime getUpdated()
getUpdated
in interface IVersionableEntity
public void setUpdated(org.joda.time.DateTime updated)
setUpdated
in interface IVersionableEntity
updated
- updatedpublic final boolean equals(java.lang.Object obj)
true
if UUID and created timestamp (is this really needed/make sense?)
is the same for the passed Object and this one.
This method is final as subclasses should not override it.equals(Object)
.
For discussion see #7202.
match strategy
and make sure
matching
is implemented for the respective CdmBase subclass.
You may adapt your match strategy to your own needs.
See hibernate109
, geocities
,
or ibm
for more information about equals and hashcode.
CdmBase.equals(Object)
.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
protected java.util.Map<Language,LanguageString> cloneLanguageString(java.util.Map<Language,LanguageString> oldMap) throws java.lang.CloneNotSupportedException
oldMap
- java.lang.CloneNotSupportedException
Copyright © 2007-2020 EDIT. All Rights Reserved.