Skip to content

Instantly share code, notes, and snippets.

@PierceZ
Created October 2, 2017 20:27
Show Gist options
  • Save PierceZ/90f1adf12c062b62a32776e86fecc27a to your computer and use it in GitHub Desktop.
Save PierceZ/90f1adf12c062b62a32776e86fecc27a to your computer and use it in GitHub Desktop.
@Entity
public class Zoo {
@Id
private long id;
private String name;
@Backlink
public ToMany<Animal> animals;
public Zoo() {
}
public Zoo(String name) {
this.name = name;
}
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment