Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.persistence.*;
- import static dst.ass1.jpa.util.Constants.*;
- @Entity
- public class Location implements ILocation {
- @Id
- @GeneratedValue
- @Column(name = I_LOCATION)
- private Long id;
- @Column(name = M_LOCATION_NAME)
- private String name;
- @Column(name = M_LOCATION_LOCATION_ID)
- private long locationId;
- @Override
- public Long getId() {
- return id;
- }
- @Override
- public void setId(Long id) {
- this.id = id;
- }
- @Override
- public String getName() {
- return name;
- }
- @Override
- public void setName(String name) {
- this.name = name;
- }
- @Override
- public Long getLocationId() {
- return locationId;
- }
- @Override
- public void setLocationId(Long locationId) {
- this.locationId = locationId;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement