All Implemented Interfaces:
Serializable

@Entity(name="Team") public class Team extends BaseEntity<Long>
The Team entity represents a collective competitor (club or team).

The Team's fields are defined as follows:

  • id : the unique identifier of the Team that is automatically generated and is the primary key.
  • name : the canonical name of the Team.
  • shortName : the abbreviated or short name for the Team (e.g., initials like "SC" for a sports club).
  • city : the city where the Team is based.
  • county : the county where the Team is based.
  • district : the district where the Team is based.
See Also:
  • Constructor Details

    • Team

      public Team()
  • Method Details

    • getFullName

      public String getFullName()
    • setFullName

      public void setFullName(String fullName)
    • getShortName

      public String getShortName()
    • setShortName

      public void setShortName(String shortName)
    • getCity

      public String getCity()
    • setCity

      public void setCity(String city)
    • getCounty

      public String getCounty()
    • setCounty

      public void setCounty(String county)
    • getDistrict

      public String getDistrict()
    • setDistrict

      public void setDistrict(String district)
    • equals

      public boolean equals(Object o)
      Description copied from class: BaseEntity
      Equality is based on the entity's identifier. Two entities are considered equal if they are of the same class and have the same non-null identifier.

      If the ID is null, we treat it as a transient (new) object. Transient objects are only equal if they are the exact same instance.

      Overrides:
      equals in class BaseEntity<Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity<Long>
    • toString

      public String toString()
      Overrides:
      toString in class Object