/FileExtraction/Java_unseen/mihailsuntsov_dokiocrm_server/src/main/java/com/dokio/model/DocumentsMenu.java
/*
        Dokio CRM - server part. Sales, finance and warehouse management system
        Copyright (C) Mikhail Suntsov /mihail.suntsov@gmail.com/

        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU Affero General Public License as
        published by the Free Software Foundation, either version 3 of the
        License, or (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU Affero General Public License for more details.

        You should have received a copy of the GNU Affero General Public License
        along with this program.  If not, see <https://www.gnu.org/licenses/>
*/

package com.dokio.model;

import javax.persistence.*;

@Entity
@Table(name="documents_menu")
public class DocumentsMenu {

  @Id
  @Column(name="id")
  @SequenceGenerator(name="documents_menu_id_seq", sequenceName="documents_menu_id_seq", allocationSize=1)
  @GeneratedValue(generator="documents_menu_id_seq")
  private Long id;

  @ManyToOne
  @JoinColumn(name = "directory_id", nullable = false)
  private DocumentsDirectories directoryId;

  @Column(name = "icon_style")
  private String icon_style;

  @ManyToOne
  @JoinColumn(name = "user_id", nullable = false)
  private User userId;

  @ManyToOne
  @JoinColumn(name = "document_id", nullable = false)
  private Documents document;


  public long getId() {
    return id;
  }

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


  public User getUserId() {
    return userId;
  }

  public void setUserId(User userId) {
    this.userId = userId;
  }

  public Documents getDocument() {
    return document;
  }

  public void setDocument(Documents document) {
    this.document = document;
  }

  public DocumentsDirectories getDirectoryId() {
    return directoryId;
  }

  public void setDirectoryId(DocumentsDirectories directoryId) {
    this.directoryId = directoryId;
  }

  public String getIcon_style() {
    return icon_style;
  }

  public void setIcon_style(String icon_style) {
    this.icon_style = icon_style;
  }
}
