package es.boart.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;

@Entity
public class Like {
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;
	@ManyToOne
	private User user;
	@ManyToOne
	private Publication publication;
	
	/**
	 * @param id
	 * @param user
	 * @param publication
	 */
	public Like(long id, User usuario, Publication publication) {
		this.user = usuario;
		this.publication = publication;
	}
	
	public Like(){}
	
	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}
	
	/**
	 * @param usuario the user to set
	 */
	public void setUser(User usuario) {
		this.user = usuario;
	}
	
	/**
	 * @return the publication
	 */
	public Publication getPublication() {
		return publication;
	}
	
	/**
	 * @param publication the publication to set
	 */
	public void setPublication(Publication publication) {
		this.publication = publication;
	}
	
	
	
}
@@ -532,29 +532,17 @@
 ike(
-long id, 
 User us
-uario
+er
 , Pu
@@ -582,21 +582,18 @@
 ser = us
-uario
+er
 ;%0A%09%09this
@@ -793,21 +793,18 @@
 (User us
-uario
+er
 ) %7B%0A%09%09th
@@ -815,21 +815,18 @@
 ser = us
-uario
+er
 ;%0A%09%7D%0A%09%0A%09

Fix errors.