package com.ibtp.kontor.library.entity;

import javax.persistence.*;

/**
 * Created by TPEETZ on 23.01.2015.
 */
@Entity
@Table(name = "FILE")
public class FileEntity {

    private Long id;

    private String title;

    public FileEntity() {}

    public FileEntity(String title) {
        setTitle(title);
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    /* unused */
    public void setId(Long id) {
        this.id = id;
    }

    @Column
    public String getTitle() {
        return title;
    }

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