@Status(stage=PRODUCTION, unitTests=PARTIAL) @Review(by="Kees Schotanus", at="2009-09-28") @MappedSuperclass public abstract class AbstractEntity extends Object implements Persistable, Serializable
Constructor and Description |
---|
AbstractEntity()
Default constructor as required by JPA specifications.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Determines whether this AbstractEntity is equal to the supplied object.
|
Integer |
getVersion()
Gets the version (number of times this Entity has been updated) of this Entity.
|
int |
hashCode()
Computes the hash code of this AbstractEntity.
|
void |
setVersion(Integer version)
Sets the version (number of times this Entity has been updated) for this Entity.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getPrimaryKey
public AbstractEntity()
public Integer getVersion()
getVersion
in interface Persistable
public void setVersion(Integer version)
version
- The version for this Entity.public boolean equals(Object object)
Copyright © 2008–2018. All rights reserved.