package com.maddogs.domain;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;

@Entity
public class User extends PersistableDomainObject{

    private String name;
    private String email;
    private String password;

    @OneToMany
    private List<Tag> tags;

    @OneToMany
    private List<Run> runs;

    public User() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Tag> getTags() {
        return tags;
    }

    public void setTags(List<Tag> tags) {
        this.tags = tags;
    }

    public List<Run> getRuns() {
        return runs;
    }

    public void setRuns(List<Run> runs) {
        this.runs = runs;
    }
}

@@ -106,28 +106,83 @@
 java
-.util.List;%0A%0A@Entity
+x.persistence.Table;%0Aimport java.util.List;%0A%0A@Entity%0A@Table(name = %22tuser%22)
 %0Apub

Use non-reserved user table name