Created
October 30, 2019 16:52
-
-
Save TikhomirovSergey/39c286ca17783979034779b5b4cfb370 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 = "Manufacturer") | |
public class Manufacturer extends PersistableObject { | |
@PrimaryKey | |
@Persistent(valueStrategy= IdGeneratorStrategy.INCREMENT) | |
@Column(name = "id") | |
private Integer id; | |
@Column(name = "Name") | |
private String name; | |
public Integer getId() { | |
return id; | |
} | |
public String getName() { | |
return name; | |
} | |
public Manufacturer setName(String name) { | |
this.name = name; | |
return this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment