Interface Identifiable<K>
- Type Parameters:
K
- ID type (Short, Integer, Long...?)
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to implement by any object stored in database. It must use a numeric technical identifier.
Excepted for entities representing table associations as they use a composite key
-
Method Summary
-
Method Details
-
getId
K getId()Gets an object's unique identifier.- Returns:
- Object identifier
-