Class BaseEntity

  • Direct Known Subclasses:
    BaseCodeAndDescriptionEntity

    public class BaseEntity
    extends java.lang.Object
    Author:
    Collin Alpert

    Describes an entity that has an id. Every entity must inherit from this class.

    w
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseEntity()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getId()  
      void setId​(long id)
      This setter only exists for frameworks like Spring, where a form needs to set this id.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BaseEntity

        public BaseEntity()
    • Method Detail

      • getId

        public long getId()
      • setId

        public void setId​(long id)
        This setter only exists for frameworks like Spring, where a form needs to set this id. It is greatly discouraged from using this setter directly.
        Parameters:
        id - The it of the entity.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object