반응형

MANDATORY

Support a current transaction, throw an exception if none exists.

시작된 트랜잭션이 있으면 support, 없으면 예외 발생


NESTED

Execute within a nested transaction if a current transaction exists, behave like PROPAGATION_REQUIRED else.

시작된 트랜잭션이 있으면 중첩해서 트랜잭션을 실행한다. 


NEVER

Execute non-transactionally, throw an exception if a transaction exists.

트랜잭션이 있으면 예외 발생


NOT_SUPPORTED

Execute non-transactionally, suspend the current transaction if one exists.

시작된 트랜잭션이 있으면 보류한 후 트랜잭션 없이 진행한다.


REQUIRED

Support a current transaction, create a new one if none exists.

시작된 트랜잭션이 있으면 support, 없으면 새로운 트랜잭션을 생성한다.


REQUIRES_NEW

Create a new transaction, and suspend the current transaction if one exists.

이미 시작된 트랜잭션이 있으면 보류하고 새로운 트랜잭션을 생성해서 시작한다.


SUPPORTS

Support a current transaction, execute non-transactionally if none exists.

시작된 트랜잭션이 있으면 support, 없으면 없이 진행한다. 

728x90
반응형

'Development > Java' 카테고리의 다른 글

[SpringCloud]Spring Config..  (0) 2016.01.26
spring Cache  (0) 2015.12.05
[JPA]Persistence Context  (0) 2015.08.25
[JPA]Entity 생명주기  (0) 2015.08.12
Mybatis 동적쿼리 사용시 NuberFormatException:For input String 해결방법  (0) 2014.10.30
반응형
PEMDAS 라는 규칙

1. 괄호 (Parentheses) : 가장 높은 우선순위. 괄호안에 있는 표현식이 먼저 계산됨.

2. 거듭제곱(Exponentiation) : 2**1+1 의 결과는 4가 아니라 3이다. 3*1**3 의 결과는 27이 아니라 3이다.

3. 곱셈(Multiplication), 나눗셈(Division)은 같은 우선순위를 갖는데 덧셈(Addition)과 뺄셈(Subtraction) 보다 높은 우선순위를 갖는다.


같은 우선순위를 같는 연산자는 거듭제곱을 제외하고는 왼쪽에서 오른쪽으로 계산된다. 


출처 : http://www.flowdas.com/thinkpython/02-variables-expressions-and-statements/



728x90
반응형
반응형
여기 참조하면 될듯


728x90
반응형
반응형


docker ps -a


docker stop [contatiner ID]

docker rm [containerID]

docker rmi [repositoryID]


728x90
반응형
반응형

Window 기준 C:\Users\유저명\atom .apmrc 파일 생성


https-proxy = http://ip:port
http-proxy = http://ip:port
strict-ssl = false


여기 참고

https://github.com/atom/apm#behind-a-firewall

728x90
반응형
반응형

Persistence Context 특징

- 1차 캐시

- 동일성 보장

- 트랜잭션을 지원하는 쓰기 지연 (transaction write-behind)

- 변경감지(dirty checking)

- 지연로딩


조회

- 조회시에 1차캐시에서 식별자 값으로 entity 조회. 없으면 DB에서 조회


등록

- persist 를 실행하면 1차 캐시에 저장 되고 transaction writer-behind에 쿼리를 저장해둔다.

- commit 시점에 transaction writer-behind에 있는 쿼리를 실행함.


수정 

- 1차 캐시에 Entity가 저장될 시점에 최초상태의 스냅샷을 같이 저장한다. 

- transaction writer-behind 에서 flush 시점에 스냅샷과 entity를 비교해서 변경된 entity를 찾는다.

728x90
반응형

'Development > Java' 카테고리의 다른 글

spring Cache  (0) 2015.12.05
Spring propagation  (0) 2015.12.01
[JPA]Entity 생명주기  (0) 2015.08.12
Mybatis 동적쿼리 사용시 NuberFormatException:For input String 해결방법  (0) 2014.10.30
util.Date vs sql.Date 차이  (0) 2014.07.01
반응형

1. new/transient : persistence context와 무관

2. managed : persistence context에 저장된 상태

3. detached : persistence context에 저장되었다가 분리된 상태

4. removed : 삭제된 상태


728x90
반응형
반응형

clean : removes files generated at build-time in a project's directory (target by default)

--> 빌드 타임에 생성된 파일들을 삭제.

install : installs the package into the local repository, for use as a dependency in other projects locally.

--> 의존관계가 있는 다른 프로젝트에서 사용하기 위한 패키지를 로컬 레파지토리에 install

deploy : copies the final package to the remote repository for sharing with other developers and projects.

--> 다른 프로젝트나 개발자들에게 공유하기위해 리모트 레파지토리에 최종 패키지를 복사한다.

728x90
반응형

'Development > Build' 카테고리의 다른 글

[Gradle] gradle build error tool.jar... valid JDK  (0) 2018.10.19
[Gradle]Ubuntu 에서 Gradle 설치하기  (0) 2018.10.19
Jenkins 설치  (0) 2018.09.19
Mac 에서 gradle 설치  (0) 2016.07.04
Maven 라이브러리 추출  (0) 2016.01.06
반응형

http://www.dpriver.com/pp/sqlformat.htm

728x90
반응형

+ Recent posts