Class SerializableBaseEntity

java.lang.Object
com.github.collinalpert.java2db.entities.BaseEntity
com.github.collinalpert.java2db.entities.SerializableBaseEntity
All Implemented Interfaces:
java.io.Serializable

public class SerializableBaseEntity
extends BaseEntity
implements java.io.Serializable
Author:
Collin Alpert
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    SerializableBaseEntity()  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    long getId()  
    int hashCode()  
    void setId​(long id)
    Deprecated.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getId

      public long getId()
      Overrides:
      getId in class BaseEntity
    • setId

      @Deprecated public void setId​(long id)
      Deprecated.
      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 and it's effects will not be considered with any of the CRUD operations.
      Overrides:
      setId in class BaseEntity
      Parameters:
      id - The id of the entity.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class BaseEntity
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class BaseEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity