File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
src/main/java/com/helper/vavahelper Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .helper .vavahelper .repositories ;
2+
3+ import org .springframework .data .jpa .repository .JpaRepository ;
4+
5+ import com .helper .vavahelper .models .Skills .Skills ;
6+
7+ public interface SkillsRepository extends JpaRepository <Skills , Integer >{
8+
9+ }
Original file line number Diff line number Diff line change 1+ package com .helper .vavahelper .models .Skills ;
2+
3+ import com .helper .vavahelper .models .Agents .Agents ;
4+ import jakarta .persistence .*;
5+ import lombok .*;
6+
7+ @ Entity
8+ @ Table (name = "Skills" )
9+ @ Data
10+ @ NoArgsConstructor
11+ @ AllArgsConstructor
12+ public class Skills {
13+
14+ @ Id
15+ @ GeneratedValue (strategy = GenerationType .IDENTITY )
16+ private Integer id ;
17+
18+ @ ManyToOne
19+ @ JoinColumn (name = "agente_id" , nullable = false )
20+ private Agents agent ;
21+
22+ @ Column (name = "nome" , nullable = false , length = 50 )
23+ private String name ;
24+
25+ @ Column (name = "descricao" , columnDefinition = "TEXT" )
26+ private String description ;
27+ }
You can’t perform that action at this time.
0 commit comments