com.gisgraphy.model

## Class BaseObject

- java.lang.Object
- - com.gisgraphy.model.BaseObject

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    Address, Role, User

      public abstract class BaseObject
      extends Object
      implements Serializable

  Base class for Model objects. Child objects should implement toString(), equals() and hashCode().
  Author:
    Matt Raible
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BaseObject()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract boolean` | `equals(Object o)` Compares object equality.
    `abstract int` | `hashCode()` When you override equals, you should override hashCode.
    `abstract String` | `toString()` Returns a multi-line String with key=value pairs.

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### BaseObject

          public BaseObject()

  - ### Method Detail

    - #### toString

          public abstract String toString()

      Returns a multi-line String with key=value pairs.
      Overrides:
        `toString` in class `Object`
      Returns:
        a String representation of this class.

    - #### equals

          public abstract boolean equals(Object o)

      Compares object equality. When using Hibernate, the primary key should not be a part of this comparison.
      Overrides:
        `equals` in class `Object`
      Parameters:
        `o` - object to compare to
      Returns:
        true/false based on equality tests

    - #### hashCode

          public abstract int hashCode()

      When you override equals, you should override hashCode. See "Why are equals() and hashCode() importation" for more information: http://www.hibernate.org/109.html
      Overrides:
        `hashCode` in class `Object`
      Returns:
        hashCode

Copyright © 2015. All rights reserved.