package com.avaje.tests.idkeys.db;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
// Just let Ebean define Identity mechanism for testing across all DB types
//@SequenceGenerator(name = "AD_SEQ_NAME", sequenceName = "AD_SEQ")
public class AuditLog
{
    @Id
    //@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AD_SEQ_NAME")
    private Long id;

    private String description;

    private String modifiedDescription;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getModifiedDescription()
    {
        return modifiedDescription;
    }

    public void setModifiedDescription(String modifiedDescription)
    {
        this.modifiedDescription = modifiedDescription==null?null:"_" + modifiedDescription + "_";
    }
}