package com.jakubu9333.grammarManager.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @author Jakub Uhlarik
 */

@Getter
@Setter
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class FileContent
{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(columnDefinition = "text")
    private String content;

    public FileContent(String file) {
        this.content=file;
    }
}
