/*
 * Copyright (c) 2015-2020, Chen Rui
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.vnet.demo.entity;


import javax.persistence.Entity;
import javax.persistence.Table;

import com.vnet.demo.hibernate.entity.AbstractEntity;

@Entity
@Table(name="tbl_note")
public class Note extends AbstractEntity {

    private String title;
    
    private String icon;

    private String context;

    private String summary;
    
//    @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
//    @JoinTable(name="tbl_ref_note_storage",
//    	joinColumns={ @JoinColumn(name="note_id",referencedColumnName="id")},
//    	inverseJoinColumns={@JoinColumn(name="storage_id",referencedColumnName="id")})
//    private List<Storage> files;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }
    
}
