package com.theironyard.entities;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * Created by jeffryporter on 7/19/16.
 */
@Entity
@Table(name = "threads")
public class Thread
{
    @Id
    @GeneratedValue
    int id;

    @Column(nullable = false)
    User sender;

    @Column(nullable = false)
    User reciever;

    @Column(nullable = false)
    Item item;

    public Thread()
    {
    }

    public Thread(User sender, User reciever, Item item)
    {
        this.sender = sender;
        this.reciever = reciever;
        this.item = item;
    }

    public int getId()
    {
        return id;
    }

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

    public User getSender()
    {
        return sender;
    }

    public void setSender(User sender)
    {
        this.sender = sender;
    }

    public User getReciever()
    {
        return reciever;
    }

    public void setReciever(User reciever)
    {
        this.reciever = reciever;
    }

    public Item getItem()
    {
        return item;
    }

    public void setItem(Item item)
    {
        this.item = item;
    }
}

@@ -318,26 +318,26 @@
     User rec
-i
 e
+i
 ver;%0A%0A    @C
@@ -448,18 +448,18 @@
 User rec
-i
 e
+i
 ver, Ite
@@ -510,34 +510,34 @@
         this.rec
-i
 e
+i
 ver = reciever;%0A
@@ -521,34 +521,34 @@
 s.receiver = rec
-i
 e
+i
 ver;%0A        thi
@@ -853,26 +853,26 @@
  User getRec
-i
 e
+i
 ver()%0A    %7B%0A
@@ -885,26 +885,26 @@
   return rec
-i
 e
+i
 ver;%0A    %7D%0A%0A
@@ -925,18 +925,18 @@
 d setRec
-i
 e
+i
 ver(User
@@ -968,18 +968,18 @@
 this.rec
-i
 e
+i
 ver = re

Correct spelling