Created
October 2, 2019 14:49
-
-
Save mloza/f89a492c9ee3daf03c4ea52899a59c00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Project { | |
@GeneratedValue | |
@Id | |
private int id; | |
@Column | |
private String name; | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
@Override | |
public String toString() { | |
return "Project{" + | |
"id=" + id + | |
", name='" + name + '\'' + | |
"}"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ProjectRepository extends CrudRepository<Project, Integer> { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment