Created
October 2, 2017 20:29
-
-
Save PierceZ/4d1f31e8743654226b3d45c5967d746c 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 Animal { | |
@Id | |
private long id; | |
private String name; | |
private String image; | |
private String group; | |
public ToOne<Zoo> zoo; | |
public Animal() { | |
} | |
public Animal(String name, String image, String group) { | |
this.name = name; | |
this.image = image; | |
this.group = group; | |
} | |
public long getId() { | |
return id; | |
} | |
public void setId(long id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getImage() { | |
return image; | |
} | |
public void setImage(String image) { | |
this.image = image; | |
} | |
public String getGroup() { | |
return group; | |
} | |
public void setGroup(String group) { | |
this.group = group; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment