목록JPA (3)
HEROJOON 블로그(히로블)
오류명: org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL 원인: DB 예약어 사용으로 오류 발생. 해결: DB 예약어가 아닌 명칭으로 이름 바꿈.

목표 JPA Table에 Index 설정하기 단일 Index 지정 복합 Index 지정 Unique Index 지정 환경 Framework : Spring Boot 2.6.7 Build : Gradle 6.9.2 JDK : JDK11 해보기 ● Index 추가 전 JPA Entity ● Index 추가 후 JPA Entity 1. Index 추가 방법 (단일 Index 추가할 경우) @Table(name = "MEMBER", indexes = @Index(name = "idx__email__birthday", columnList = "email, birthday")) 2. Index 추가 방법 (Index를 여러개 추가 할 경우) @Table(name = "MEMBER", indexes = { @Inde..

목표 Spring Boot에서 JPA 사용하기 환경 Framework : Spring Boot 2.6.7 Build : Gradle 6.9.2 JDK : JDK11 할 것 요약 1. build.gradle에 JPA dependency 추가하기 2. application.yml에 JPA 설정 추가하기 3. JPA Entity 생성 4. JPA Repository 생성 5. JPA CRUD API 만들어보기 해보기 전체 예제코드: https://github.com/herojoon/jpa-project 1. build.gradle에 JPA dependency 추가하기 dependencies { // JPA implementation 'org.springframework.boot:spring-boot-start..