All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.geotab.model.entity.NameEntity Maven / Gradle / Ivy

/*
 *
 * 2020 Copyright (C) Geotab Inc. All rights reserved.
 */

package com.geotab.model.entity;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * An {@link Entity} that has a name field.
 */
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class NameEntity extends Entity {

  /**
   * The name of this entity that uniquely identifies it and is used when displaying this entity.
   * Maximum length [50].
   */
  private String name;

  public NameEntity(String id, String name) {
    super(id);
    this.name = name;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy