Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 텍스트가 많은 경우
- Javascript
- react
- step 테이블
- spring security
- react link
- react quill custom
- Spring DTO
- springbatch chunk
- react Page
- spring
- Spring Controller return
- JPA Update\
- spring builder
- JPA Insert
- javascript 기초
- react Quill
- 코드 중복제거
- react jsx if
- Spring Entity
- SpringBatch 스키마
- Spring JPA
- javascript 함수
- springbatch
- react forwardRef
- Docker Windows 설치
- react react-router-dom v6
- javascrpit 기초
- Spring CORS
- editor Quill
Archives
- Today
- Total
목록Spring Entity (1)
천천히 알아보는 코딩공부
[spring] DTO, Entity 차이 및 전달 로직
Entity는 Controller, Client단에서 쓰이면 직접 쓰이면 좋은 설계가 아니라고 한다. Entity는 Service -> Repository -> DB 상태로만 사용하는 것 같다. Entity DB에 저장하기 위해 유저가 정의한 클래스 실제 DB테이블과 매칭 @Getter @NoArgsConstructor @Table(name="admin") @Entity public class Member { @Id @GeneratedValue(strategy= GenerationType.AUTO) private long id; private String name; private String password; private String email; } DTO 데이터 전송 객체 DB에서 데이터를 얻어 Se..
Java/SpringBoot
2022. 12. 1. 16:56