Skip to content

Commit

Permalink
feat: 장르, 아티스트 데이터 초기화 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmizz authored Aug 7, 2024
1 parent bb0f138 commit e4f28b1
Show file tree
Hide file tree
Showing 6 changed files with 859 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public record ArtistDetailApiFormResponse(
) {

public ArtistDetailApiFormResponse(
ArtistDetailServiceResponse artistDetailServiceResponse) {
ArtistDetailServiceResponse artistDetailServiceResponse
) {
this(
artistDetailServiceResponse.id(),
artistDetailServiceResponse.koreanName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class BaseEntity implements Persistable<UUID> {
private UUID id = UlidCreator.getMonotonicUlid().toUuid();

@CreatedDate
@Column(name = "create_at", updatable = false, nullable = false)
@Column(name = "created_at", updatable = false, nullable = false)
private LocalDateTime createdAt;

@LastModifiedDate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ spring:
ddl-auto: none
show-sql: true
open-in-view: false
generate-ddl: true
defer-datasource-initialization: true
properties:
hibernate:
format_sql: true
highlight_sql: true
use_sql_comments: true
datasource:
url: ${APPLICATION_DATASOURCE_URL_DEV}
username: ${APPLICATION_DATASOURCE_USERNAME}
password: ${APPLICATION_DATASOURCE_PASSWORD}
driver-class-name: org.postgresql.Driver
driver-class-name: org.postgresql.Driver

sql:
init:
mode: always
platform: local
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ spring:
show-sql: true
open-in-view: false
generate-ddl: true

# 별도의 datasource 불필요
# docker-compose 의존성이 ConnectionDetails를 통해 자동으로 DB 연결
properties:
hibernate:
format_sql: true
highlight_sql: true
use_sql_comments: true
Loading

0 comments on commit e4f28b1

Please sign in to comment.