package org.ccpit.base.modol;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.lang.annotation.Inherited;

/**
 * Created by Administrator on 2015/8/13.
 */
public class BaseEntity implements IEntity,Serializable {
    /**
     * Serializable ID
     */
    private long id;

    /**
     * set id
     *
     * @param id
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * Get id
     *
     * @return
     */
    @Override
    public long getId() {
        return id;
    }
}
