package io.github.vyo.hellojersey.entity;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * Created by Manuel Weidmann on 03.03.2015.
 */
@Entity
@Table(name = "GREETING")
@ApiModel(value = "A simple greeting; nothing out of the ordinary.")
public class Greeting {

    @Id
    @GeneratedValue(generator = "increment")
    @GenericGenerator(name = "increment", strategy = "increment")
    private int id;

    @Column(name = "ALIAS")
    @ApiModelProperty(value = "An alias for this greeting.", required = true)
    private String alias;

    @Column(name = "MESSAGE", nullable = false)
    @ApiModelProperty(value = "The greeting's actual content.", required = true)
    private String message;

    public Greeting() {
        message = "How rude!";
    }

    public Greeting(String message) {
        this.message = message;
    }

    public int getId() {
        return id;
    }

    private void setId(int id) {
        this.id = id;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public int hashCode() {
        return message.hashCode();
    }

    @Override
    public boolean equals(Object object) {
        if (object instanceof Greeting && object.hashCode() == this.hashCode()) {
            return true;
        } else {
            return false;
        }
    }
}

@@ -320,21 +320,27 @@
 piModel(
-value
+description
  = %22A si
@@ -525,24 +525,61 @@
 increment%22)%0A
+    @ApiModelProperty(hidden = true)%0A
     private 
@@ -679,35 +679,36 @@
 g.%22, required = 
-tru
+fals
 e)%0A    private S

Tidy up swagger api