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

    Modifier and Type
    Method
    Description
    Returns the unique ID of this entity
    void
    setId(Long id)
    Sets the unique ID of this entity (should only really be used by EntityManagers).
  • Method Details

    • getId

      Long getId()
      Returns the unique ID of this entity
      Returns:
      unique ID of this entity
    • setId

      void setId(Long id)
      Sets the unique ID of this entity (should only really be used by EntityManagers).
      Parameters:
      id - unique ID to set