Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package dst.ass1.jpa.model.impl;
- import dst.ass1.jpa.model.IPlatformUser;
- import javax.persistence.*;
- import static dst.ass1.jpa.util.Constants.*;
- @Entity
- @Table(name = T_PLATFORMUSER)
- @Inheritance(strategy = InheritanceType.JOINED)
- public abstract class PlatformUser implements IPlatformUser {
- @Id
- @GeneratedValue
- @Column(name = I_PLATFORMUSER)
- private Long id;
- @Column(name = M_PLATFORMUSER_NAME)
- private String name;
- @Column(name = M_PLATFORMUSER_TEL, nullable = false)
- private String tel;
- @Column(name = M_PLATFORMUSER_AVG_RATING)
- private Double avgRating;
- @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 String getTel() {
- return tel;
- }
- @Override
- public void setTel(String tel) {
- this.tel = tel;
- }
- @Override
- public Double getAvgRating() {
- return avgRating;
- }
- @Override
- public void setAvgRating(Double avgRating) {
- this.avgRating = avgRating;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement