package org.ccpit.base.role;

import org.ccpit.base.modol.BaseEntity;
import org.hibernate.annotations.*;

import javax.persistence.*;
import javax.persistence.Entity;

/**
 * 角色 地址 映射表
 * Created by Administrator on 2015/9/6.
 */
@Entity
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class RoleUrl extends BaseEntity {
    private String url;

    @Override
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return super.getId();
    }


    /**
     * 唯一，不可为空
     */
    @Column(unique = false, nullable = false)
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
