Commit 6f38836f authored by Richard Bruskiewich's avatar Richard Bruskiewich Committed by Matija Obreza
Browse files

class Crop now extends from GlobalVersionedAuditedModel rather than

AuditedModel
parent 7226fce7
......@@ -32,8 +32,7 @@ import javax.persistence.Transient;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.genesys2.server.model.AuditedModel;
import org.genesys2.server.servlet.controller.rest.serialization.CropSerializer;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;
......@@ -42,11 +41,14 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.genesys2.server.model.GlobalVersionedAuditedModel;
import org.genesys2.server.servlet.controller.rest.serialization.CropSerializer;
@Entity
@Table(name = "crop")
@Indexed
@JsonSerialize(using = CropSerializer.class)
public class Crop extends AuditedModel {
public class Crop extends GlobalVersionedAuditedModel {
private static final long serialVersionUID = -2686341831839109257L;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment