I - The generic ID type.@MappedSuperclass public abstract class GeneratedIdEntity<I extends Comparable<I> & Serializable> extends BaseEntity<I>
Mapped superclass for entity with generated ID.
It extends from BaseEntity.
It specifies a Id column, named "id".
JPA will automatically take care of the ID.
ID| Constructor and Description |
|---|
GeneratedIdEntity() |
| Modifier and Type | Method and Description |
|---|---|
I |
getId()
Returns the ID.
|
void |
setId(I id)
Sets the ID.
|
compareTo, equals, hashCode, toStringpublic I getId()
Identifiablepublic void setId(I id)
Identifiableid - The ID.Copyright © 2015–2020 OmniFaces. All rights reserved.