Created
October 30, 2019 16:49
-
-
Save TikhomirovSergey/2a55fd1a86b1b747644fa4bd21914c49 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
@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