esoe
8 months ago
4 changed files with 59 additions and 1 deletions
@ -0,0 +1,26 @@ |
|||||||
|
package ru.molokoin.resourceserviceapi.entities; |
||||||
|
|
||||||
|
import jakarta.persistence.Column; |
||||||
|
import jakarta.persistence.Entity; |
||||||
|
import jakarta.persistence.GeneratedValue; |
||||||
|
import jakarta.persistence.GenerationType; |
||||||
|
import jakarta.persistence.Id; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.NoArgsConstructor; |
||||||
|
|
||||||
|
@NoArgsConstructor |
||||||
|
@AllArgsConstructor |
||||||
|
@Entity |
||||||
|
@Data |
||||||
|
public class Teacher { |
||||||
|
@Id |
||||||
|
@GeneratedValue(strategy=GenerationType.AUTO) |
||||||
|
private long id; |
||||||
|
@Column(length=50) |
||||||
|
private String first_name;//Имя
|
||||||
|
private String second_name;//Фамилия
|
||||||
|
private String last_name;//Отчество
|
||||||
|
private String employee_id; |
||||||
|
private String snils; |
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
package ru.molokoin.resourceserviceapi.repositories; |
||||||
|
|
||||||
|
import org.springframework.data.repository.CrudRepository; |
||||||
|
import org.springframework.stereotype.Repository; |
||||||
|
|
||||||
|
import ru.molokoin.resourceserviceapi.entities.Teacher; |
||||||
|
|
||||||
|
@Repository |
||||||
|
public interface TeachersRepositoryFace extends CrudRepository<Teacher, Long>{ |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue