본문 바로가기 메뉴 바로가기

Practical Accumulation

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Practical Accumulation

검색하기 폼
  • 분류 전체보기 (423)
    • 광고 (0)
    • 업무 폴더 (0)
    • Demos (40)
      • 민원신청 SPA (0)
      • Email Client (14)
      • Shopping mall (9)
      • Football Club (12)
    • Languages (25)
    • Spring (185)
      • Hibernate (27)
      • Spring Basic (45)
      • Spring Security (15)
      • Spring AOP (12)
      • Spring REST (23)
      • Spring Advanced (18)
      • Spring Boot (26)
      • Spring Test (16)
      • Microservice (3)
    • Client Technologies (61)
      • Angular (30)
      • React (19)
      • Bootstrap (9)
      • Thymeleaf (3)
    • Side Technologies (46)
    • Basic (13)
      • Algorithms (10)
      • Data Structure (2)
    • Embedded Systems (2)
    • IT 관련 유용한 것들 (4)
    • 기록 (43)
  • 방명록

Data JPA (1)
Spring Boot : Data JPA - DTO 사용 할 때

1. DTO는 편의 상 사용하는 유사 Entity객체이다. 1-1 일반적인 경우에는 Entity를 그대로 받아 @ModelAttribute로 처리한다. 1-2 DTO역시 동일한 방식으로 @ModeAttribute로 객체를 구성할 수 있다. 2. 보통 Entity의 일부분을 받거나 update 용도로 Entity와는 구조가 다른 데이터를 받는 경우에 DTO를 사용한다. 2-1 사용방법은 거의 Entity객체와 동일하고 보통 이름에 suffix로 Request를 붙이는 경우가 많다. 2-2 DTO를 사용할 경우 보통 로직처리는 별도의 Service 객체를 만들어서 처리한다. 3. 아래 코드는 서비스에서 DTO를 받아서 승객 Entity와 예약 Entity를 생성하고 데이터베이스에 저장하는 예제이다. pack..

Spring/Spring Boot 2020. 4. 29. 15:54
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 도커 개발환경 참고
  • AWS ARN 구조
  • Immuability에 관한 설명
  • 자바스크립트 멀티 비동기 함수 호출 참고
  • WSDL 참고
  • SOAP 컨슈머 참고
  • MySql dump 사용법
  • AWS Lambda with Addon
  • NFC 드라이버 linux 설치
  • electron IPC
  • mifare classic 강의
  • go module 관련 상세한 정보
  • C 메모리 찍어보기
  • C++ Addon 마이그레이션
  • JAX WS Header 관련 stackoverflow
  • SOAP Custom Header 설정 참고
  • SOAP Custom Header
  • SOAP BindingProvider
  • dispatcher 사용하여 설정
  • vagrant kvm으로 사용하기
  • git fork, pull request to the …
  • vagrant libvirt bridge network
  • python, js의 async, await의 차이
  • go JSON struct 생성
  • Netflix Kinesis 활용 분석
  • docker credential problem
  • private subnet에서 outbound IP 확…
  • 안드로이드 coroutine
  • kotlin with, apply, also 등
  • 안드로이드 초기로딩이 안되는 경우
  • navigation 데이터 보내기
  • 레이스 컨디션 navController
  • raylib
TAG
  • Rest
  • form
  • Spring
  • 설정하기
  • one-to-one
  • Spring Security
  • mapping
  • MYSQL
  • 자바
  • 하이버네이트
  • Security
  • XML
  • hibernate
  • one-to-many
  • 외부파일
  • 설정
  • 스프링
  • RestTemplate
  • crud
  • jsp
  • 로그인
  • 상속
  • WebMvc
  • Validation
  • Many-To-Many
  • login
  • 스프링부트
  • 매핑
  • Angular
  • spring boot
more
250x250

Blog is powered by Tistory / Designed by Tistory

티스토리툴바