Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.scopum.model;
- import javax.persistence.Id;
- import javax.persistence.*;
- @Entity
- @Table(name = "users", schema = "public")
- public class User {
- @Id
- private Long chatId;
- @Column(name = "state")
- private Integer stateId;
- @Column(name = "age")
- private int age; // Возраст пользователя
- @Column(name = "weight")
- private double weight; // Вес пользователя
- @Column(name = "growth")
- private int growth; // Рост пользователя
- @Column(name = "gender")
- private String gender; // Пол пользователя
- @Column(name = "employment")
- private double employment; // Уровень занятости пользователя(1-5)
- @Column(name = "calpfc")
- private double[] calPFC;
- public double[] getCalPFC() {
- return calPFC;
- }
- public void setCalPFC(double[] calPFC) {
- this.calPFC = calPFC;
- }
- public Long getChatId() {
- return chatId;
- }
- public Integer getStateId() {
- return stateId;
- }
- public void setStateId(Integer stateId) {
- this.stateId = stateId;
- }
- public User() {
- }
- public User(Long chatId, Integer state) {
- this.chatId = chatId;
- this.stateId = state;
- }
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public double getWeight() {
- return weight;
- }
- public void setWeight(double weight) {
- this.weight = weight;
- }
- public int getGrowth() {
- return growth;
- }
- public void setGrowth(int growth) {
- this.growth = growth;
- }
- public String getGender() {
- return gender.toString();
- }
- public void setGender(String gender) {
- this.gender = gender;
- }
- public double getEmployment() {
- return employment;
- }
- public void setEmployment(double employment) {
- this.employment = employment;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment