- Type Parameters:
ID- the type of the entity's primary key.
public interface Entity<ID>
Optional marker interface for record-based entities.
This interface is used to support the EntityRepository, which provides CRUD logic out-of-the-box.
- See Also:
-
Method Summary
-
Method Details
-
id
ID id()Returns the primary key of the entity.The primary key can be any type, such as a
IntegerorLong, but records representing compound keys are also supported.- Returns:
- the primary key of the entity.
-