44 lines
751 B
Java
44 lines
751 B
Java
package com.example.prapro2spring.model;
|
|
|
|
import jakarta.persistence.*;
|
|
|
|
@Entity
|
|
@Table(name = "occupations")
|
|
public class Occupation {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Integer id;
|
|
|
|
@Column(name = "name")
|
|
private String name;
|
|
|
|
@Column(name = "value")
|
|
private Integer value;
|
|
|
|
// getters and setters
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Integer getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(Integer value) {
|
|
this.value = value;
|
|
}
|
|
} |