Skip to content

Instantly share code, notes, and snippets.

@pablocloud
Created March 13, 2018 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablocloud/b9ea30a11e549fa9823b0e9a57a81ff5 to your computer and use it in GitHub Desktop.
Save pablocloud/b9ea30a11e549fa9823b0e9a57a81ff5 to your computer and use it in GitHub Desktop.
package com.besuricata.rest.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;
@Entity
public class Suricata implements Serializable {
@Id
@GeneratedValue
private Long id;
private String name;
private Double height;
public Suricata() {
}
public Suricata(String name, Double height) {
this.name = name;
this.height = height;
}
public Long getId() {
return id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Double getHeight() {
return height;
}
public void setHeight(Double height) {
this.height = height;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment