com.geotab.model.entity.NameEntityWithVersion Maven / Gradle / Ivy
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 and a version field.
*/
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class NameEntityWithVersion extends NameEntity {
private Long version;
public NameEntityWithVersion(String id, String name, Long version) {
super(id, name);
this.version = version;
}
}