Skip to content

Instantly share code, notes, and snippets.

@jogaco
Created May 21, 2017 16:37
Show Gist options
  • Save jogaco/06db4d27d356ba20ea8f32be204a700c to your computer and use it in GitHub Desktop.
Save jogaco/06db4d27d356ba20ea8f32be204a700c to your computer and use it in GitHub Desktop.
Spring Boot Tutorial
package com.operatornew.gamemanager.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "game")
public class Game {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer id;
private String name;
private String description;
public Game() {
}
public Game(String name, String description) {
this.name = name;
this.description = description;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment