com.jpattern.orm.test.domain.DataVersionInteger Maven / Gradle / Ivy
The newest version!
package com.jpattern.orm.test.domain;
import com.jpattern.orm.annotation.Generator;
import com.jpattern.orm.annotation.Id;
import com.jpattern.orm.annotation.Table;
import com.jpattern.orm.annotation.Version;
import com.jpattern.orm.annotation.generator.GeneratorType;
/**
*
* @author Francesco Cina'
*
* 26/ago/2011
*/
@Table(tableName="DATA_VERSION_INT")
public class DataVersionInteger {
@Id
@Generator(generatorType = GeneratorType.AUTOGENERATED, name="")
private int id;
private String data;
@Version
private Integer version;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public void setData(String data) {
this.data = data;
}
public String getData() {
return data;
}
public void setVersion(Integer version) {
this.version = version;
}
public Integer getVersion() {
return version;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy