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