Skip to content

Instantly share code, notes, and snippets.

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 TikhomirovSergey/2a55fd1a86b1b747644fa4bd21914c49 to your computer and use it in GitHub Desktop.
Save TikhomirovSergey/2a55fd1a86b1b747644fa4bd21914c49 to your computer and use it in GitHub Desktop.
@PersistenceCapable(table = "Publishers")
public class Publisher extends PersistableObject {
@PrimaryKey
@Persistent(valueStrategy=IdGeneratorStrategy.INCREMENT)
@Column(name = "ID")
private Integer id;
@Column(name = "Name")
private String name;
public String getName() {
return name;
}
public Publisher setName(String name) {
this.name = name;
return this;
}
public Integer getId() {
return id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment