Skip to content

Commit d593daf

Browse files
committed
#Skills - Models and Repositories
1 parent 6d487ab commit d593daf

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

0 commit comments

Comments
 (0)