package com.example;

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

@Entity
public class Acceso {
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;
	
	private String login;
	private String password;
	
	public Acceso(){
		
	}
	public Acceso (String login, String password){
		super();
		this.login = login;
		this.password = password;
	}
	
	public String getLogin() {
		return login;
	}
	
	public void setLogin(String login) {
		this.login = login;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Override
	public String toString(){ 
		return "Acceso [login=" + login + ", password=" + password + "]";
	}
}
@@ -17,16 +17,98 @@
 ple;%0D%0A%0D%0A
+import javax.persistence.ElementCollection;%0D%0Aimport javax.persistence.FetchType;%0D%0A
 import j
@@ -133,16 +133,16 @@
 ntity;%0D%0A
-
 import j
@@ -403,24 +403,107 @@
 ing password
+Hash;%0D%0A%09%0D%0A%09@ElementCollection(fetch = FetchType.EAGER)%0D%0A%09private List%3CString%3E roles
 ;%0D%0A%09%0D%0A%09publi
@@ -614,32 +614,36 @@
 %0A%09%09this.password
+Hash
  = password;%0D%0A%09%7D
@@ -810,32 +810,36 @@
 %09return password
+Hash
 ;%0D%0A%09%7D%0D%0A%09%0D%0A%09publi
@@ -892,16 +892,20 @@
 password
+Hash
  = passw
@@ -1018,16 +1018,20 @@
 password
+Hash
  + %22%5D%22;%0D
@@ -1035,9 +1035,11 @@
 %22;%0D%0A%09%7D%0D%0A
-
 %7D
+%0D%0A

Update Acceso.java