mirror of
https://github.com/hwanny1128/HGZero.git
synced 2026-06-13 07:09:09 +00:00
meeting 서비스 빌드 성공
This commit is contained in:
-1
@@ -35,7 +35,6 @@ public class MinutesEntity extends BaseTimeEntity {
|
||||
private String title;
|
||||
|
||||
@OneToMany(mappedBy = "minutes", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@OrderBy("order ASC")
|
||||
@Builder.Default
|
||||
private List<MinutesSectionEntity> sections = new ArrayList<>();
|
||||
|
||||
|
||||
+3
-2
@@ -39,8 +39,9 @@ public class MinutesSectionEntity extends BaseTimeEntity {
|
||||
@Column(name = "content", columnDefinition = "TEXT")
|
||||
private String content;
|
||||
|
||||
@Column(name = "order", nullable = false)
|
||||
private Integer order;
|
||||
@Column(name = "\"order\"")
|
||||
@Builder.Default
|
||||
private Integer order = 0;
|
||||
|
||||
@Column(name = "verified", nullable = false)
|
||||
@Builder.Default
|
||||
|
||||
+4
-1
@@ -2,6 +2,8 @@ package com.unicorn.hgzero.meeting.infra.gateway.repository;
|
||||
|
||||
import com.unicorn.hgzero.meeting.infra.gateway.entity.MinutesSectionEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
@@ -15,7 +17,8 @@ public interface MinutesSectionJpaRepository extends JpaRepository<MinutesSectio
|
||||
/**
|
||||
* 회의록 ID로 섹션 목록 조회 (순서대로)
|
||||
*/
|
||||
List<MinutesSectionEntity> findByMinutesIdOrderByOrderAsc(String minutesId);
|
||||
@Query("SELECT m FROM MinutesSectionEntity m WHERE m.minutesId = :minutesId ORDER BY m.order ASC")
|
||||
List<MinutesSectionEntity> findByMinutesIdOrderByOrderAsc(@Param("minutesId") String minutesId);
|
||||
|
||||
/**
|
||||
* 회의록 ID와 타입으로 섹션 목록 조회
|
||||
|
||||
@@ -21,10 +21,12 @@ spring:
|
||||
# JPA Configuration
|
||||
jpa:
|
||||
show-sql: ${SHOW_SQL:true}
|
||||
database-platform: org.hibernate.dialect.PostgreSQLDialect
|
||||
properties:
|
||||
hibernate:
|
||||
format_sql: true
|
||||
use_sql_comments: true
|
||||
dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||
hibernate:
|
||||
ddl-auto: ${DDL_AUTO:update}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user