Skip to content

Commit

Permalink
[fix] query dsl 관련 의존성 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Jun 26, 2024
1 parent 6aed4ad commit cd12637
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 16 deletions.
6 changes: 0 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,6 @@ project("pophory-domain") {
api(project(":pophory-common"))
implementation("org.springframework.boot:spring-boot-starter-web")

//querydsl 추가
implementation("com.querydsl:querydsl-jpa:5.0.0:jakarta")
annotationProcessor("com.querydsl:querydsl-apt:5.0.0:jakarta")
annotationProcessor("jakarta.annotation:jakarta.annotation-api")
annotationProcessor("jakarta.persistence:jakarta.persistence-api")

implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")

Expand Down
5 changes: 5 additions & 0 deletions pophory-domain/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
dependencies {
//querydsl 추가
implementation("com.querydsl:querydsl-jpa:5.0.0:jakarta")
annotationProcessor("com.querydsl:querydsl-apt:5.0.0:jakarta")
annotationProcessor("jakarta.annotation:jakarta.annotation-api")
annotationProcessor("jakarta.persistence:jakarta.persistence-api")

}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.pophory.pophorydomain.album;


import com.pophory.pophorycommon.entity.BaseTimeEntity;
import com.pophory.pophorydomain.albumtheme.AlbumDesign;
import com.pophory.pophorydomain.common.BaseTimeEntity;
import com.pophory.pophorydomain.member.Member;
import com.pophory.pophorydomain.photo.Photo;
import jakarta.persistence.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package com.pophory.pophorycommon.entity;

package com.pophory.pophorydomain.common;

import jakarta.persistence.EntityListeners;
import jakarta.persistence.MappedSuperclass;
Expand All @@ -16,10 +15,10 @@
@Getter
@NoArgsConstructor
public abstract class BaseTimeEntity {
@CreatedDate
private LocalDateTime createdAt;

@CreatedDate
private LocalDateTime createdAt;

@LastModifiedDate
private LocalDateTime updatedAt;
@LastModifiedDate
private LocalDateTime updatedAt;
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@



import com.pophory.pophorycommon.entity.BaseTimeEntity;
import com.pophory.pophorycommon.exception.MemberException;
import com.pophory.pophorydomain.album.Album;
import com.pophory.pophorydomain.common.BaseTimeEntity;
import com.pophory.pophorydomain.fcm.FcmEntity;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.pophory.pophorydomain.photo;

import com.pophory.pophorycommon.entity.BaseTimeEntity;
import com.pophory.pophorycommon.util.RandomUtil;
import com.pophory.pophorydomain.album.Album;
import com.pophory.pophorydomain.common.BaseTimeEntity;
import com.pophory.pophorydomain.studio.Studio;
import jakarta.persistence.*;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.pophory.pophorydomain.config

import org.springframework.context.annotation.Configuration
import org.springframework.data.jpa.repository.config.EnableJpaAuditing

@EnableJpaAuditing
@Configuration
class JpaAuditingConfig {
}

0 comments on commit cd12637

Please sign in to comment.