Interface Identifiable
public interface Identifiable
Serves as an interface that all BBL JPA entities should implement.
This is not only good practice (so all records in the database have
unique IDs) but also makes it easy to implement data managers that
can persist, find, and merge multiple entities.
- Author:
- rdoherty
-
Method Summary
-
Method Details
-
getId
-
setId
Sets the unique ID of this entity (should only really be used by EntityManagers).- Parameters:
id- unique ID to set
-