@MappedSuperclass public abstract class AbstractPersistable extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Long |
id |
protected Integer |
tenantId |
protected Long |
version |
| Modifier | Constructor and Description |
|---|---|
|
AbstractPersistable() |
protected |
AbstractPersistable(AbstractPersistable other) |
protected |
AbstractPersistable(Integer tenantId) |
protected |
AbstractPersistable(Long id,
Integer tenantId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getId() |
Integer |
getTenantId() |
Long |
getVersion() |
int |
hashCode() |
void |
setId(Long id)
Should
|
void |
setTenantId(Integer tenantId) |
void |
setVersion(Long version) |
String |
toString() |
protected Long id
@NotNull protected Integer tenantId
protected Long version
public AbstractPersistable()
protected AbstractPersistable(Integer tenantId)
protected AbstractPersistable(AbstractPersistable other)
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.