package de.bettinggame.model;

import javax.persistence.*;

/**
 * User class.
 */
@Entity
@Table(name = "users")
public class User extends AbstractIdEntity {

    @Column(nullable = false)
    private String username;

    @Column(nullable = false)
    private String password;

    @Column(nullable = false)
    private String email;

    public User() {
    }

    public User(String username, String password, String email) {
        this.username = username;
        this.password = password;
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public String getEmail() {
        return email;
    }
}

@@ -24,16 +24,72 @@
 model;%0A%0A
+import de.bettinggame.model.repository.UserRepository;%0A%0A
 import j
@@ -706,11 +706,89 @@
 l;%0A    %7D
+%0A%0A    public void create(UserRepository repo) %7B%0A        repo.save(this);%0A    %7D
 %0A%7D%0A

add create() method in User entity