com.jpattern.orm.test.domain.DataVersionLong 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 DataVersionLong {
@Id
@Generator(generatorType = GeneratorType.AUTOGENERATED, name="")
private int id;
private String data;
@Version
private long 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(long version) {
this.version = version;
}
public long getVersion() {
return version;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy