Package org.conical.common.bbl.jpa
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
Long getId()Returns the unique ID of this entity- Returns:
- unique ID of this entity
-
setId
Sets the unique ID of this entity (should only really be used by EntityManagers).- Parameters:
id
- unique ID to set
-