content: package com.alan.binu.domain;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Id;
  
  @Entity
  public class User {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(nullable = false, updatable = false)
      private Long id;
  
      @Column(nullable = false, unique = true)
      private String username;
  
      @Column(nullable = false)
      private String password;
  
      @Column(nullable = false)
      private String role;
  
      public User() {
      }
      
    public User(String username, String password, String role) {
      super();
      this.username = username;
      this.password = password;
      this.role = role;
    }
    
    public Long getId() {
  	    return id;
  	  }
  
  	  public void setId(Long id) {
  	    this.id = id;
  	  }
  
  	  public String getUsername() {
  	    return username;
  	  }
  
  	  public void setUsername(String username) {
  	    this.username = username;
  	  }
  
  	  public String getPassword() {
  	    return password;
  	  }
  
  	  public void setPassword(String password) {
  	    this.password = password;
  	  }
  
  	  public String getRole() {
  	    return role;
  	  }
  
  	  public void setRole(String role) {
  	    this.role = role;
  	  }
  	}