package com.mssngvwls;

import java.util.List;

public class Category {

    private String name;
    private List<Phrase> phrases;

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = (prime * result) + ((name == null) ? 0 : name.hashCode());
        result = (prime * result) + ((phrases == null) ? 0 : phrases.hashCode());
        return result;
    }

    @Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Category other = (Category) obj;
        if (name == null) {
            if (other.name != null) {
                return false;
            }
        } else if (!name.equals(other.name)) {
            return false;
        }
        if (phrases == null) {
            if (other.phrases != null) {
                return false;
            }
        } else if (!phrases.equals(other.phrases)) {
            return false;
        }
        return true;
    }

    public String getName() {
        return name;
    }

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

    public List<Phrase> getPhrases() {
        return phrases;
    }

    public void setPhrases(final List<Phrase> phrases) {
        this.phrases = phrases;
    }

}

@@ -39,16 +39,39 @@
 il.List;
+%0Aimport java.util.UUID;
 %0A%0Apublic
@@ -89,16 +89,65 @@
 gory %7B%0A%0A
+    private final UUID uuid = UUID.randomUUID();%0A
     priv
@@ -1212,32 +1212,206 @@
 rn true;%0A    %7D%0A%0A
+    @Override%0A    public String toString() %7B%0A        return %22Category %5Buuid=%22 + uuid + %22, name=%22 + name + %22%5D%22;%0A    %7D%0A%0A    public UUID getUuid() %7B%0A        return uuid;%0A    %7D%0A%0A
     public Strin

Add UUID for hashcode/equals on Phrase