Skip to content

Conversation

@sawaca96
Copy link
Owner

No description provided.

Comment on lines -18 to -22
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
Copy link
Owner Author

Choose a reason for hiding this comment

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

ruff로 대체했기 때문에 삭제했습니다.

Comment on lines +21 to +23
@dataclass(unsafe_hash=True, kw_only=True) # TODO: kw_only를 언제 써야 할까?
class OrderLine:
id: UUID
Copy link
Owner Author

Choose a reason for hiding this comment

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

increment Integer를 id로 사용할 경우 DB에서 관리하는 id값을 application에서 미리 알 수 없기 때문에 id를 UUID로 변경하였습니다.

추가로 id를 미리 생성할 수 있다면 ref필드가 필요 없기 때문에 제거 했습니다. 이 부분은 제 해석이긴 한데, 책에서 DB에서 생성해주는 id값을 미리 알 수 없어서 id와 같은 필드로 ref를 사용하고 있었던 것 같습니다.

@sawaca96 sawaca96 marked this pull request as ready for review January 22, 2023 14:08
@sawaca96 sawaca96 changed the title 🚧 wip 4️⃣ CHAPTER_04 repository Jan 22, 2023
@sawaca96 sawaca96 merged commit 680613c into main Jan 22, 2023
@sawaca96 sawaca96 deleted the ch-04 branch January 22, 2023 14:08
sawaca96 added a commit that referenced this pull request Jan 22, 2023
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.

1 participant