@MappedSuperclass public abstract class AbstractEntity extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH_STRING_COMPACT
Compact string field length.
|
static int |
LENGTH_STRING_STANDARD
Regular string field length.
|
static int |
LENGTH_URL
URL field length.
|
static int |
LENGTH_UUID
UUID field length.
|
| Constructor and Description |
|---|
AbstractEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Checks object equality.
|
UUID |
getId()
Returns record identifier.
|
int |
hashCode()
Generates object ID.
|
AbstractEntity |
setId(UUID value)
Sets ID.
|
public static final int LENGTH_UUID
public static final int LENGTH_STRING_STANDARD
public static final int LENGTH_STRING_COMPACT
public static final int LENGTH_URL
public UUID getId()
public AbstractEntity setId(UUID value)
This is implemented only because of Spring loading purposes.
value - Record ID.public boolean equals(Object object)
Copyright © 2015 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.