// ========================================================================
// Copyright (C) zeroth Project Team. All rights reserved.
// GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
// http://www.gnu.org/licenses/agpl-3.0.txt
// ========================================================================
package zeroth.framework.enterprise.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;
/**
* テスト参照オブジェクト
* @author nilcy
*/
@Entity
@Table(name = "TestExample", uniqueConstraints = { @UniqueConstraint(columnNames = { "code" }) })
@SuppressWarnings("all")
public class TestExample extends AbstractPersistable<TestExample> {
@Column(name = "code", nullable = false, insertable = true, updatable = true)
private String code;
@Column(name = "version", nullable = false, insertable = true, updatable = true)
@Version
private Long version;
public TestExample() {
}
public TestExample(final String code) {
this.code = code;
}
public String getCode() {
return code;
}
public void setCode(final String code) {
this.code = code;
}
public Long getVersion() {
return version;
}
public void setVersion(final Long version) {
this.version = version;
}
}