Spring #2

ims·2020년 10월 19일
0

BlueDot-Spring

목록 보기
3/13

annotation 차이

Spring annotation - @Service,@Controller,@Component 차이

https://happyer16.tistory.com/entry/Spring-annotation-ServiceControllerComponent-%EC%B0%A8%EC%9D%B4

@Component
Spring에서 관리되는 객체임을 표시하기 위해 사용하는 가장 기본적인 annotation이다. 즉, scan-auto-detection과 dependency injection을 사용하기 위해서 사용되는 가장 기본 어노테이션이다.

Entity Extends

@Inheritance(strategy=InheritanceType.N)

https://ict-nroo.tistory.com/128

참조

https://victorydntmd.tistory.com/209

M : N mapping

https://ict-nroo.tistory.com/127

cascade = CascadeType.PERSIST

CascadeType.PERSIST를 함부로 사용하면 안되는 이유

https://joont92.github.io/jpa/CascadeType-PERSIST%EB%A5%BC-%ED%95%A8%EB%B6%80%EB%A1%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EB%A9%B4-%EC%95%88%EB%90%98%EB%8A%94-%EC%9D%B4%EC%9C%A0/

JPA의 CASCADE옵션으로 영속성 전이를 제공한다. 쉽게 말해서 영속성 전이를 사용하면 부모 엔티티를 저장할 때 자식 엔티티도 함께 저장할 수 있다.

http://wonwoo.ml/index.php/post/1002

JPA cascade 란?!

https://velog.io/@max9106/JPA%EC%97%94%ED%8B%B0%ED%8B%B0-%EC%83%81%ED%83%9C-Cascade

직렬화

https://okky.kr/article/224715

서버 클러스터란?

서버 클러스터란 각기 다른 서버(Server Enterprise or server Datacenter)들을 하나로 묶어서 하나의 시스템같이 동작하게 함으로써, 클라이언트들에게 고가용성의 서비스를 제공하는것을 말한다. 클러스터로 묶인 한시스템에 장애가 발생하면, 정보의 제공 포인트는 클러스터로 묶인 다른 정상적인 서버로 이동한다. 서버클러스터는 사용자로 하여금 서버 기반 정보를 지속적이고, 끊기지않게 제공받을수 있게 한다.

https://allpartner.tistory.com/11

도메인이란? entity - vo

'도메인 객체' 란 표현으로 접하게되는데 도메인 객체란 내가 개발하고자 하는 영역을 분석하고, 그 분석의 결과로 도출된 객체들을 일컫는다

도메인 객체는 다시 Entity와 Value Object로 나뉘게 된다.

https://multifrontgarden.tistory.com/186

Dao , Dto, Domain

https://4ngeunlee.tistory.com/223

@JoinColums

@JoinColumns 를 사용시에는 @JoinColumn의 referencedColumnName을 지정 하자.

https://medium.com/@SlackBeck/jpa-joincolumns-%EC%82%AC%EC%9A%A9%EC%8B%9C-%EC%A3%BC%EC%9D%98-%EC%82%AC%ED%95%AD-7bc22b98ed9b

@JoinColum

@JoinColumn(name = "TEAM_ID") : 조인컬럼은 외래키를 매핑할 때 사용한다. name 속성에는 매핑할 외래키 이름을 지정한다.

https://yellowh.tistory.com/121

복합키 ( @EmbededId , @IdClass )

복합키설명

https://jhnyang.tistory.com/71

하지만 테이블의 키가 복합키로 이뤄져 있다면 엔티티를 설계할 때에 이를 고려해야 한다.

@Embeddable 이용하는 방법
@IdClass 이용하는 방법

https://lng1982.tistory.com/286

profile
티스토리로 이사했습니다! https://imsfromseoul.tistory.com/ + https://camel-man-ims.tistory.com/

0개의 댓글