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