-
- All Known Subinterfaces:
EntityBean
- All Known Implementing Classes:
SimpleEntityBean
public interface Entity
This is the interface for an entity that can be loaded from or saved to a database. It can be identified uniquely by itsprimary key
. Typically you may want to useEntityBean
but for legacy technologies such as JPA you have to use standard Java Beans.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_NAME_ID
The property name ofID
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Id<? extends Entity>
getId()
static <B extends Entity>
Id<B>getId(B bean)
void
setId(Id<? extends Entity> id)
-
-
-
Field Detail
-
PROPERTY_NAME_ID
static final String PROPERTY_NAME_ID
The property name ofID
.- See Also:
- Constant Field Values
-
-