package cn.com.qmth.examcloud.core.questions.dao.entity.base;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * Created by zhengmin on 2016/12/15.
 */
@MappedSuperclass
public abstract class IdEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -4046980867984924958L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    public long getId() {
        return id;
    }

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