/*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.backendtck.compensation;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Version;
import org.hibernate.search.annotations.Indexed;
/**
* @author Gunnar Morling
*/
@Entity
@Indexed
public class Shipment {
@Id
private String id;
@Version
private long version;
private String state;
Shipment() {
}
public Shipment(String id) {
this.id = id;
}
public Shipment(String id, String state) {
this.id = id;
this.state = state;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public long getVersion() {
return version;
}
public void setVersion(long version) {
this.version = version;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
}