com.jpattern.orm.test.domain.DataVersionSqlDate Maven / Gradle / Ivy
The newest version!
package com.jpattern.orm.test.domain;
import java.sql.Date;
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_TIMESTAMP")
public class DataVersionSqlDate {
@Id
@Generator(generatorType = GeneratorType.AUTOGENERATED, name="")
private int id;
private String data;
@Version
private Date version;
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public void setData(String data) {
this.data = data;
}
public String getData() {
return this.data;
}
public void setVersion(Date version) {
this.version = version;
}
public Date getVersion() {
return this.version;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy