Skip to content

[5주차 과제] 김승완 과제 제출합니다.#14

Open
chamelewan wants to merge 1 commit intoCAUSWICT-EDU:chamelewanfrom
chamelewan:main
Open

[5주차 과제] 김승완 과제 제출합니다.#14
chamelewan wants to merge 1 commit intoCAUSWICT-EDU:chamelewanfrom
chamelewan:main

Conversation

@chamelewan
Copy link

image image

@chamelewan chamelewan changed the title ERD 기반 게시판 테이블 엔티티 생성 및 DB 연동 [5주차 과제] 김승완 과제 제출합니다. Nov 20, 2025
Comment on lines +27 to +28
@Column(columnDefinition = "INTEGER DEFAULT 0")
private Integer viewCount;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시 여기서 columnDefination가 어떤 역할을 하는 걸까요? 보아하니 기본값을 0으로 설정하는 코드처럼 보이는데... 이렇게 설정할 수도 있다니 신기하네요!

@@ -0,0 +1,28 @@
spring:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

application.yml이 gitignore되지 않았네요? 지금 DB는 로컬에서 쓰는 거라 다행이긴 하지만 AWS 쓸 때는 보안을 위해서라도 꼭 ignore해주셨으면 좋겠습니다.

Copy link

@eunjin0840 eunjin0840 Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builder.Default 는 어떤 역할을 하는 건가요?
중간에 viewCount 필드가 있는 것 같은데 viewCount를 필드로 관리하는 이유가 있을까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants