src/main/java/com/bezkoder/springjwt/models/Setting.java
<gh_stars>0package com.bezkoder.springjwt.models;
import javax.persistence.*;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="settings")
public class Setting {
    @Id
    @Column(name="id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @Column(name="title")
    private String title;

    @Column(name="result")
    private String result;

    //deneme
    public int getId() {
        return id;
    }
}
