update: common jpa 설정 변경 및 중복된 AuditLogRepository.java 삭제
This commit is contained in:
parent
6c3b5b4235
commit
8588f3ef9b
@ -11,7 +11,10 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
*/
|
||||
@Configuration
|
||||
@ComponentScan(basePackages = "com.ktds.hi.common")
|
||||
@EntityScan(basePackages = "com.ktds.hi.common.entity")
|
||||
@EntityScan(basePackages = {
|
||||
"com.ktds.hi.common.entity",
|
||||
"com.ktds.hi.common.audit"
|
||||
})
|
||||
@EnableJpaRepositories(basePackages = "com.ktds.hi.common.repository")
|
||||
public class CommonModuleConfiguration {
|
||||
// 설정 클래스는 어노테이션만으로도 충분
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package com.ktds.hi.common.audit;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
@ -11,11 +13,13 @@ import java.time.LocalDateTime;
|
||||
* 감사 로그 엔티티
|
||||
*/
|
||||
@Getter
|
||||
@Entity
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AuditLog {
|
||||
|
||||
@Id
|
||||
private Long id;
|
||||
private String entityType;
|
||||
private String entityId;
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
package com.ktds.hi.common.audit;
|
||||
|
||||
/**
|
||||
* 감사 로그 리포지토리 인터페이스
|
||||
*/
|
||||
public interface AuditLogRepository {
|
||||
|
||||
void save(AuditLog auditLog);
|
||||
|
||||
AuditLog findById(Long id);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user