package com.devproserv.courses.dao;

/**
 * Represents a common entity of user. Maps the table 'users' in the database.
 * 
 * @author vovas11
 * @see UserDao
 */
public class User {

    // fields representing columns in the table 'users'
    private int id;
    private String login;
    private String password;
    private String firstName;
    private String lastName;

    // getters and setters
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    
    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;
    }
    
    public String getFirstName() {
        return firstName;
    }
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    
    public String getLastName() {
        return lastName;
    }
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}

@@ -175,16 +175,69 @@
 s User %7B
+%0A    %0A    enum Role %7B%0A        STUD, LECT, ADMIN%0A    %7D
 %0A%0A    //
@@ -419,16 +419,39 @@
 astName;
+%0A    private Role role;
 %0A%0A    //
@@ -1197,10 +1197,144 @@
 ;%0A    %7D%0A
+    %0A    public Role getRole() %7B%0A        return role;%0A    %7D%0A    %0A    public void setRole(Role role) %7B%0A        this.role = role;%0A    %7D%0A
 %7D%0A

Add new field "role" into User.java