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