package com.ticktac.business;

import java.io.Serializable;

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


@Entity
public class Message implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue
	private Long id;
	private int sender; // ID of the sender
	private String senderName; // Sender's name - value of 'Administrator' if the sender is the Administrator
	private int receiver; // ID of the receiver
	private String body; // Content of the message
	
	public Message() {}
	
	public Message(int sender, String senderName, int receiver, String body) {
		this.sender = sender;
		this.senderName = senderName;
		this.receiver = receiver;
		this.body = body;
	}

	public int getSender() {
		return sender;
	}

	public void setSender(int from) {
		this.sender = from;
	}
	
	public String getSenderName() {
		return senderName;
	}

	public void setSenderName(String senderName) {
		this.senderName = senderName;
	}

	public int getReceiver() {
		return receiver;
	}

	public void setReceiver(int to) {
		this.receiver = to;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}
}

@@ -367,25 +367,25 @@
 tring sender
-N
+n
 ame; // Send
@@ -615,17 +615,17 @@
 g sender
-N
+n
 ame, int
@@ -679,33 +679,33 @@
 r;%0A%09%09this.sender
-N
+n
 ame = senderName
@@ -696,25 +696,25 @@
 ame = sender
-N
+n
 ame;%0A%09%09this.
@@ -887,25 +887,25 @@
 ng getSender
-N
+n
 ame() %7B%0A%09%09re
@@ -911,25 +911,25 @@
 eturn sender
-N
+n
 ame;%0A%09%7D%0A%0A%09pu
@@ -947,17 +947,17 @@
 etSender
-N
+n
 ame(Stri
@@ -965,17 +965,17 @@
 g sender
-N
+n
 ame) %7B%0A%09
@@ -986,17 +986,17 @@
 s.sender
-N
+n
 ame = se
@@ -1003,9 +1003,9 @@
 nder
-N
+n
 ame;

Remove camelcase syntax from Message's attributes