260615_03_ENH: id 값 고치면서 생긴 사이드 이펙트 제거

This commit is contained in:
2026-06-15 12:14:36 +09:00
parent 559153891d
commit c8feac2cf0
3 changed files with 5 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ public class TShortUrlEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false, updatable = false)
@Column(name = "short_url_idx", nullable = false, updatable = false)
private Long id;
@Size(max = 8)

View File

@@ -4,7 +4,7 @@ import com.kri.shorturl.persistence.entity.TShortUrlEntity;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ShortUrlRepository extends JpaRepository<TShortUrlEntity, String> {
public interface ShortUrlRepository extends JpaRepository<TShortUrlEntity, Long> {
Optional<TShortUrlEntity> findByShortCode(String shortCode);

View File

@@ -20,6 +20,9 @@ spring:
multipart:
max-file-size: 100MB
max-request-size: 100MB
profiles:
# 아무 설정 없을 때 기본으로 쓸 프로파일
default: local
logging:
file: