ID
- the type of the identifierpublic interface Persistable<ID>
Note that methods declared in this interface (getId()
and isNew()
) become property accessors when
implementing this interface in combination with
@AccessType(PROPERTY)
. Either of these can be marked as
transient when annotated with @Transient
.
Modifier and Type | Method and Description |
---|---|
ID |
getId()
Returns the id of the entity.
|
boolean |
isNew()
Returns if the
Persistable is new or was persisted already. |
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.