com.greenpepper.server.domain.AbstractVersionedEntity Maven / Gradle / Ivy
package com.greenpepper.server.domain;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;
@MappedSuperclass
/**
* Abstract AbstractVersionedEntity class.
*
* @author oaouattara
* @version $Id: $Id
*/
public abstract class AbstractVersionedEntity extends AbstractEntity
{
private Integer version;
/**
* Getter for the field version
.
*
* @return a {@link java.lang.Integer} object.
*/
@Version
@Column(name="VERSION")
public Integer getVersion()
{
return this.version;
}
/**
* Setter for the field version
.
*
* @param version a {@link java.lang.Integer} object.
*/
public void setVersion(Integer version)
{
this.version = version;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy