일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- mapper annotationo
- CrudRepository update
- JPA DB 다중 Connection
- Spring JPA Specification
- 도커 logs
- spring repository
- JAVA Exception 종류
- AllArgsConstructor
- @Builder @NoArgsConstructor
- spring @mapper
- spring JPA DB multi Connection
- vuecomponent
- spring JPA DB Connection
- docker 로그
- spring DB Connection
- vueslot
- Transactions Propagation Option
- Vue
- Data Annotation
- JPA DB Connection 다중
- Spring
- 도커 로그 확인
- doker logs tail
- repository annotation
- 자바버그수정
- spring mapper
- 도커 컨테이너 로그
- NoArgsConstructor
- JpaRepository update
- spring mapper annotation
- Today
- Total
목록Backend/DB (2)
개발을 잘하고 싶은 개발자
참고 https://www.baeldung.com/spring-data-jpa-stored-procedures REF_CURSOR 에 반환값을 바꿔도, 어노테이션에 넣어도, 계속 ArrayList 형태로 출력되서 겨우겨우 구글링하면서 찾아 결국 성공했다. "EntityManager"로 프로시져 호출하면서 프로시져명 뒤에 받아올 Entity 클래스를 "MyObject.class"라고 넣어준다. 이 방법을 못찾았다면 ArrayList를 다시 Entity에 넣는 소스를 만드었을지도 모른다ㅠ 오늘도 하나 Clear! EntityManager em = entityManagerFactory.createEntityManager() StoredProcedureQuery query = em.createStoredProc..
프로시저 사용시 REF_CURSOR를 사용해서 반환되는 값을 넣어 출력한다. 사용법은 아래와 같다 CREATE OR REPLACE PROCEDURE select_Insa ( pResult OUT SYS_REFCURSOR , pcity IN insa.city%TYPE ) IS BEGIN OPEN pResult FOR SELECT name, city FROM insa WHERE city=pcity; END; pResult OUT SYS_REFCURSOR 은 파라미터가 OUT이라 해당값을 불러온 놈에게 돌려준다 => list_Insa 프로시져의 실행문 select_Insa(vResult,pcity); 자바에서도 프로시져 호출시 아래와 같이 설정해준다. procedureQuery.registerStoredPro..