@Status(stage=PRODUCTION, unitTests=PARTIAL) @Review(by="Kees Schotanus", at="2009-09-28") @MappedSuperclass public abstract class AbstractEntityIdentifiedByObjectId extends AbstractEntity
Constructor and Description |
---|
AbstractEntityIdentifiedByObjectId()
Default constructor as required by JPA specifications.
|
Modifier and Type | Method and Description |
---|---|
Long |
getObjectId()
Gets the unique Object ID of this Entity.
|
Long |
getPrimaryKey()
Gets the primary key of this persistable entity.
|
void |
setObjectId(Long objectId)
Sets the unique Object ID for this Entity.
|
String |
toString()
Creates a String representation of this Entity.
|
equals, getVersion, hashCode, setVersion
public AbstractEntityIdentifiedByObjectId()
public Long getObjectId()
public void setObjectId(Long objectId)
objectId
- Unique Object ID.public Long getPrimaryKey()
Copyright © 2008–2018. All rights reserved.